Function at 0x100021b0
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, 0x48
push esi
push edi
call 0x100021bd
pop dword [ebp - 0x40]
mov eax, 1
test eax, eax
je 0x10002210
mov ecx, dword [ebp - 0x40]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10002205
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x40
jb 0x10002205
cmp dword [ebp - 8], 0x400
jae 0x10002205
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x40]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x10002205
jmp 0x10002210
mov ecx, dword [ebp - 0x40]
sub ecx, 1
mov dword [ebp - 0x40], ecx
jmp 0x100021c0
mov edx, dword fs:[0x30]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100022c1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20]
mov cx, word [eax + 0x24]
mov word [ebp - 0x38], cx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
ror edx, 0xd
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
cmp ecx, 0x61
jl 0x10002277
mov edx, dword [ebp - 0x34]
movzx eax, byte [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 0x20]
mov dword [ebp - 4], edx
jmp 0x10002283
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov ax, word [ebp - 0x38]
sub ax, 1
mov word [ebp - 0x38], ax
movzx ecx, word [ebp - 0x38]
test ecx, ecx
jne 0x10002251
cmp dword [ebp - 4], 0x6a4abc5b
jne 0x100022b4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x28], eax
jmp 0x100022c1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
jmp 0x1000222c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 0x78
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x2c], edx
mov eax, 3
mov word [ebp - 0x38], ax
movzx ecx, word [ebp - 0x38]
test ecx, ecx
jle 0x100023e7
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
add eax, dword [edx]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
ror ecx, 0xd
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx]
test eax, eax
jne 0x10002320
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0xec0e4e8e
je 0x10002369
cmp dword [ebp - 0x18], 0x7c0dfcaa
je 0x10002369
cmp dword [ebp - 0x18], 0x91afca54
jne 0x100023d0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x18], 0xec0e4e8e
jne 0x1000239a
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
add eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x100023c4
cmp dword [ebp - 0x18], 0x7c0dfcaa
jne 0x100023b0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx]
mov dword [ebp - 0x24], edx
jmp 0x100023c4
cmp dword [ebp - 0x18], 0x91afca54
jne 0x100023c4
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dx, word [ebp - 0x38]
sub dx, 1
mov word [ebp - 0x38], dx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x2c], ecx
jmp 0x10002302
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 6]
sub dx, 1
mov ecx, dword [ebp - 8]
mov word [ecx + 6], dx
test eax, eax
je 0x1000248e
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x20]
add edx, 0x28
mov dword [ebp - 0x20], edx
jmp 0x1000243a
mov eax, dword [ebp - 8]
add eax, 0x80
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x10002593
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x10002585
cmp dword [ebp - 0x10], 0
je 0x1000254a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0x80000000
je 0x1000254a
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add eax, 0x78
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0xffff
mov ecx, dword [ebp - 0x30]
sub eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x3c]
lea eax, [edx + eax*4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx]
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x10002568
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add eax, 2
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x10002580
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
jmp 0x100024d8
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
jmp 0x100024a4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 8]
add edx, 0xa0
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
je 0x10002751
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10002751
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x10002740
mov edx, dword [ebp - 0x10]
mov ax, word [edx]
shr ax, 0xc
and ax, 0xf
movzx ecx, ax
cmp ecx, 0xa
jne 0x1000264c
mov edx, 0xfff
mov eax, dword [ebp - 0x10]
and dx, word [eax]
movzx ecx, dx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx]
add eax, dword [ebp - 0x40]
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
jmp 0x10002732
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
shr cx, 0xc
and cx, 0xf
movzx edx, cx
cmp edx, 3
jne 0x10002692
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx edx, ax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx]
add ecx, dword [ebp - 0x40]
mov edx, 0xfff
mov eax, dword [ebp - 0x10]
and dx, word [eax]
movzx edx, dx
mov eax, dword [ebp - 0x20]
mov dword [eax + edx], ecx
jmp 0x10002732
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
shr dx, 0xc
and dx, 0xf
movzx eax, dx
cmp eax, 1
jne 0x100026e5
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx eax, cx
mov ecx, dword [ebp - 0x40]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + eax]
add eax, edx
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x20]
mov word [edx + ecx], ax
jmp 0x10002732
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
shr cx, 0xc
and cx, 0xf
movzx edx, cx
cmp edx, 2
jne 0x10002732
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx edx, ax
mov eax, dword [ebp - 0x40]
and eax, 0xffff
movzx ecx, ax
mov eax, dword [ebp - 0x20]
movzx edx, word [eax + edx]
add edx, ecx
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x20]
mov word [ecx + eax], dx
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x100025f2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x100025c3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x20], eax
push 0
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret