Function at 0x10001070
Capabilities:
Access peb ldr_data
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
call fcn.10001060
mov dword [ebp - 0x48], eax
mov eax, 1
test eax, eax
je 0x100010ea
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x100010df
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x40
jb 0x100010df
cmp dword [ebp - 0xc], 0x400
jae 0x100010df
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x48]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x100010df
jmp 0x100010ea
mov ecx, dword [ebp - 0x48]
sub ecx, 1
mov dword [ebp - 0x48], ecx
jmp 0x1000109a
mov edx, dword fs:[0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10001387
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x28]
mov cx, word [eax + 0x24]
mov word [ebp - 0x40], cx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
push edx
call fcn.10001760
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax]
cmp ecx, 0x61
jl 0x10001157
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 0x20]
mov dword [ebp - 4], edx
jmp 0x10001163
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov ax, word [ebp - 0x40]
sub ax, 1
mov word [ebp - 0x40], ax
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x1000112b
cmp dword [ebp - 4], 0x224abc5b
jne 0x10001295
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, 0x78
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov ecx, 3
mov word [ebp - 0x40], cx
movzx edx, word [ebp - 0x40]
test edx, edx
jle 0x10001290
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
push ecx
call fcn.10001770
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x220e4e8e
je 0x10001212
cmp dword [ebp - 0x1c], 0x330dfcaa
je 0x10001212
cmp dword [ebp - 0x1c], 0x12afca54
jne 0x10001279
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x1c], 0x220e4e8e
jne 0x10001243
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
jmp 0x1000126d
cmp dword [ebp - 0x1c], 0x330dfcaa
jne 0x10001259
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx]
mov dword [ebp - 0x2c], edx
jmp 0x1000126d
cmp dword [ebp - 0x1c], 0x12afca54
jne 0x1000126d
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov dx, word [ebp - 0x40]
sub dx, 1
mov word [ebp - 0x40], dx
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov dword [ebp - 0x34], ecx
jmp 0x100011d7
jmp 0x10001360
cmp dword [ebp - 4], 0x22fa685d
jne 0x10001360
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, 0x78
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov ecx, 1
mov word [ebp - 0x40], cx
movzx edx, word [ebp - 0x40]
test edx, edx
jle 0x10001360
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
push ecx
call fcn.10001770
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x124c0ab8
jne 0x1000134c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x1c], 0x124c0ab8
jne 0x10001340
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
add eax, dword [edx]
mov dword [ebp - 8], eax
mov cx, word [ebp - 0x40]
sub cx, 1
mov word [ebp - 0x40], cx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x34], eax
jmp 0x100012ec
cmp dword [ebp - 0x10], 0
je 0x1000137a
cmp dword [ebp - 0x2c], 0
je 0x1000137a
cmp dword [ebp - 0x20], 0
je 0x1000137a
cmp dword [ebp - 8], 0
je 0x1000137a
jmp 0x10001387
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
jmp 0x10001106
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
push 0x40
push 0x3000
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x50]
push eax
push 0
call dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
test edx, edx
je 0x100013ec
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x100013be
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x10001471
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x48]
add edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
test edx, edx
je 0x10001466
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10001438
mov eax, dword [ebp - 0x28]
add eax, 0x28
mov dword [ebp - 0x28], eax
jmp 0x10001407
mov ecx, dword [ebp - 0xc]
add ecx, 0x80
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
add eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x10001579
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0xc]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx], 0
je 0x1000156b
cmp dword [ebp - 0x14], 0
je 0x10001530
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
and ecx, 0x80000000
je 0x10001530
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x78
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x48]
add eax, dword [edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x48]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
and ecx, 0xffff
mov edx, dword [ebp - 0x38]
sub ecx, dword [edx + 0x10]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
add eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x1000154e
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov edx, dword [ebp - 0x28]
add edx, 4
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x14], 0
je 0x10001566
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x100014bc
mov ecx, dword [ebp - 4]
add ecx, 0x14
mov dword [ebp - 4], ecx
jmp 0x10001488
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xa0
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 4], 0
je 0x10001737
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x10001737
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
sub eax, 1
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x10001726
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
shr dx, 0xc
and dx, 0xf
movzx eax, dx
cmp eax, 0xa
jne 0x10001632
mov ecx, 0xfff
mov edx, dword [ebp - 0x14]
and cx, word [edx]
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax]
add edx, dword [ebp - 0x48]
mov eax, 0xfff
mov ecx, dword [ebp - 0x14]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x28]
mov dword [ecx + eax], edx
jmp 0x10001718
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
shr ax, 0xc
and ax, 0xf
movzx ecx, ax
cmp ecx, 3
jne 0x10001678
mov edx, 0xfff
mov eax, dword [ebp - 0x14]
and dx, word [eax]
movzx ecx, dx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx]
add eax, dword [ebp - 0x48]
mov ecx, 0xfff
mov edx, dword [ebp - 0x14]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x28]
mov dword [edx + ecx], eax
jmp 0x10001718
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
shr cx, 0xc
and cx, 0xf
movzx edx, cx
cmp edx, 1
jne 0x100016ca
mov eax, 0xfff
mov ecx, dword [ebp - 0x14]
and ax, word [ecx]
movzx edx, ax
mov eax, dword [ebp - 0x48]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov eax, dword [ebp - 0x28]
movzx edx, word [eax + edx]
add edx, ecx
mov eax, 0xfff
mov ecx, dword [ebp - 0x14]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x28]
mov word [ecx + eax], dx
jmp 0x10001718
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
shr ax, 0xc
and ax, 0xf
movzx ecx, ax
cmp ecx, 2
jne 0x10001718
mov edx, 0xfff
mov eax, dword [ebp - 0x14]
and dx, word [eax]
movzx ecx, dx
mov edx, dword [ebp - 0x48]
and edx, 0xffff
movzx eax, dx
mov edx, dword [ebp - 0x28]
movzx ecx, word [edx + ecx]
add ecx, eax
mov edx, 0xfff
mov eax, dword [ebp - 0x14]
and dx, word [eax]
movzx edx, dx
mov eax, dword [ebp - 0x28]
mov word [eax + edx], cx
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x100015d8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, dword [edx + 4]
mov dword [ebp - 4], eax
jmp 0x100015a9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x28], edx
push 0
push 0
push 0xffffffffffffffff
call dword [ebp - 8]
push 0
push 1
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret