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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
call fcn.100157a0
mov dword [ebp - 0x1c], eax
mov eax, 1
test eax, eax
je 0x1001582a
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x1001581f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x40
jb 0x1001581f
cmp dword [ebp - 0x24], 0x400
jae 0x1001581f
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x4550
jne 0x1001581f
jmp 0x1001582a
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x100157da
mov edx, dword fs:[0x30]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10015ad9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0x24]
mov word [ebp - 4], cx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.10015750
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
cmp ecx, 0x61
jl 0x10015897
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax - 0x20]
mov dword [ebp - 0x10], edx
jmp 0x100158a3
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ax, word [ebp - 4]
sub ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
test ecx, ecx
jne 0x1001586b
cmp dword [ebp - 0x10], 0x6a4abc5b
jne 0x100159de
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov ecx, 3
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
test edx, edx
jle 0x100159d9
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
push ecx
call fcn.10015760
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xec0e4e8e
je 0x1001595b
cmp dword [ebp - 0x30], 0x7c0dfcaa
je 0x1001595b
cmp dword [ebp - 0x30], 0x91afca54
jne 0x100159c2
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x30], 0xec0e4e8e
jne 0x1001598c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add eax, dword [edx]
mov dword [ebp - 0x40], eax
jmp 0x100159b6
cmp dword [ebp - 0x30], 0x7c0dfcaa
jne 0x100159a2
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0x44], edx
jmp 0x100159b6
cmp dword [ebp - 0x30], 0x91afca54
jne 0x100159b6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov dx, word [ebp - 4]
sub dx, 1
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov dword [ebp - 0x34], ecx
jmp 0x10015920
jmp 0x10015ab2
cmp dword [ebp - 0x10], 0x3cfa685d
jne 0x10015ab2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov ecx, 1
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
test edx, edx
jle 0x10015ab2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
push ecx
call fcn.10015760
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x534c0ab8
jne 0x10015a9e
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x30], 0x534c0ab8
jne 0x10015a92
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add eax, dword [edx]
mov dword [ebp - 0x48], eax
mov cx, word [ebp - 4]
sub cx, 1
mov word [ebp - 4], cx
mov edx, dword [ebp - 0x28]
add edx, 4
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x34], eax
jmp 0x10015a3e
cmp dword [ebp - 0x40], 0
je 0x10015acc
cmp dword [ebp - 0x44], 0
je 0x10015acc
cmp dword [ebp - 0x38], 0
je 0x10015acc
cmp dword [ebp - 0x48], 0
je 0x10015acc
jmp 0x10015ad9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x10015846
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
push 0x40
push 0x3000
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x50]
push eax
push 0
call dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x4c], 0
je 0x10015b43
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x10015b10
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x50], 0
je 0x10015bd2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x54], 0
je 0x10015bc7
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x10015b94
mov eax, dword [ebp - 0xc]
add eax, 0x28
mov dword [ebp - 0xc], eax
jmp 0x10015b5e
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x10015ce7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x10015cd9
cmp dword [ebp - 0x14], 0
je 0x10015c9e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
and eax, 0x80000000
je 0x10015c9e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
and eax, 0xffff
mov ecx, dword [ebp - 0x20]
sub eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + eax*4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx]
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x10015cbc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x10015cd4
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x14], ecx
jmp 0x10015c23
mov edx, dword [ebp - 0x10]
add edx, 0x14
mov dword [ebp - 0x10], edx
jmp 0x10015bef
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x78]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x10015eb0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x10015eb0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x58], 0
je 0x10015e9f
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
shr ax, 0xc
and ax, 0xf
movzx ecx, ax
cmp ecx, 0xa
jne 0x10015dab
mov edx, 0xfff
mov eax, dword [ebp - 0x14]
and dx, word [eax]
movzx ecx, dx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx]
add eax, dword [ebp - 0x1c]
mov ecx, 0xfff
mov edx, dword [ebp - 0x14]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx], eax
jmp 0x10015e91
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
shr cx, 0xc
and cx, 0xf
movzx edx, cx
cmp edx, 3
jne 0x10015df1
mov eax, 0xfff
mov ecx, dword [ebp - 0x14]
and ax, word [ecx]
movzx edx, ax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx]
add ecx, dword [ebp - 0x1c]
mov edx, 0xfff
mov eax, dword [ebp - 0x14]
and dx, word [eax]
movzx edx, dx
mov eax, dword [ebp - 0xc]
mov dword [eax + edx], ecx
jmp 0x10015e91
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
shr dx, 0xc
and dx, 0xf
movzx eax, dx
cmp eax, 1
jne 0x10015e44
mov ecx, 0xfff
mov edx, dword [ebp - 0x14]
and cx, word [edx]
movzx eax, cx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax]
add eax, edx
mov ecx, 0xfff
mov edx, dword [ebp - 0x14]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0xc]
mov word [edx + ecx], ax
jmp 0x10015e91
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
shr cx, 0xc
and cx, 0xf
movzx edx, cx
cmp edx, 2
jne 0x10015e91
mov eax, 0xfff
mov ecx, dword [ebp - 0x14]
and ax, word [ecx]
movzx edx, ax
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
movzx ecx, ax
mov eax, dword [ebp - 0xc]
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 - 0xc]
mov word [ecx + eax], dx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
jmp 0x10015d4c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
jmp 0x10015d1d
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x28]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0xffffffffffffffff
call dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4