Function at 0x51b6c0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x98], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x80], xmm0
test ecx, ecx
je 0x51b7b1
lea esi, [ecx - 1]
mov eax, ecx
and eax, 3
xor ecx, ecx
cmp esi, 3
jb 0x51b762
mov ebx, dword [ebp + 0x10]
and ebx, 0xfffffffc
xor ecx, ecx
nop dword [eax + eax]
movzx esi, word [edx + ecx*2]
add word [esp + esi*2 + 0x70], 1
movzx esi, word [edx + ecx*2 + 2]
add word [esp + esi*2 + 0x70], 1
movzx esi, word [edx + ecx*2 + 4]
add word [esp + esi*2 + 0x70], 1
movzx esi, word [edx + ecx*2 + 6]
add word [esp + esi*2 + 0x70], 1
add ecx, 4
cmp ebx, ecx
jne 0x51b730
test eax, eax
je 0x51b781
lea ecx, [edx + ecx*2]
xor esi, esi
nop dword [eax + eax]
movzx edi, word [ecx + esi*2]
add word [esp + edi*2 + 0x70], 1
add esi, 1
cmp eax, esi
jne 0x51b770
movzx ebx, word [esp + 0x8e]
mov esi, dword [ebp + 0x18]
mov ecx, dword [esi]
mov edi, 0xf
test bx, bx
jne 0x51b85e
cmp word [esp + 0x8c], 0
je 0x51b7be
mov edi, 0xe
jmp 0x51b85c
mov ecx, dword [esi]
cmp word [esp + 0x8c], 0
jne 0x51b7a7
cmp word [esp + 0x8a], 0
je 0x51b7d3
mov edi, 0xd
jmp 0x51b85c
cmp word [esp + 0x88], 0
je 0x51b7e5
mov edi, 0xc
jmp 0x51b85c
cmp word [esp + 0x86], 0
je 0x51b7f7
mov edi, 0xb
jmp 0x51b85c
cmp word [esp + 0x84], 0
je 0x51b809
mov edi, 0xa
jmp 0x51b85c
cmp word [esp + 0x82], 0
je 0x51b81b
mov edi, 9
jmp 0x51b85c
cmp word [esp + 0x80], 0
je 0x51b82d
mov edi, 8
jmp 0x51b85c
cmp word [esp + 0x7e], 0
je 0x51b83c
mov edi, 7
jmp 0x51b85c
cmp word [esp + 0x7c], 0
je 0x51b84b
mov edi, 6
jmp 0x51b85c
cmp word [esp + 0x7a], 0
je 0x51be64
mov edi, 5
xor ebx, ebx
mov dword [esp + 4], ebx
cmp ecx, edi
cmova ecx, edi
mov ebx, 1
nop dword [eax]
mov al, 1
cmp word [esp + ebx*2 + 0x70], 0
jne 0x51b883
add ebx, 1
cmp edi, ebx
jne 0x51b870
mov ebx, edi
cmp ecx, ebx
cmovb ecx, ebx
movzx edx, word [esp + 0x72]
mov esi, 0xffffffff
cmp edx, 2
ja 0x51baf6
mov dword [esp + 0xc], ecx
movzx ecx, word [esp + 0x74]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
lea ecx, [ecx + edx*2]
mov esi, 4
sub esi, ecx
js 0x51baf1
add esi, esi
movzx edx, word [esp + 0x76]
sub esi, edx
js 0x51baf1
add esi, esi
movzx ecx, word [esp + 0x78]
sub esi, ecx
js 0x51baf1
mov dword [esp + 0x24], ecx
add esi, esi
movzx ecx, word [esp + 0x7a]
mov dword [esp + 8], ecx
sub esi, ecx
js 0x51baf1
add esi, esi
movzx ecx, word [esp + 0x7c]
sub esi, ecx
js 0x51baf1
mov dword [esp + 0x14], ecx
add esi, esi
movzx ecx, word [esp + 0x7e]
mov dword [esp + 0x10], ecx
sub esi, ecx
js 0x51baf1
add esi, esi
movzx ecx, word [esp + 0x80]
sub esi, ecx
js 0x51baf1
mov dword [esp + 0x3c], ecx
add esi, esi
movzx ecx, word [esp + 0x82]
mov dword [esp + 0x4c], ecx
sub esi, ecx
js 0x51baf1
add esi, esi
movzx ecx, word [esp + 0x84]
sub esi, ecx
js 0x51baf1
mov dword [esp + 0x20], ecx
add esi, esi
movzx ecx, word [esp + 0x86]
mov dword [esp + 0x38], ecx
sub esi, ecx
js 0x51baf1
add esi, esi
movzx ecx, word [esp + 0x88]
sub esi, ecx
js 0x51baf1
mov dword [esp + 0x48], ecx
add esi, esi
movzx ecx, word [esp + 0x8a]
mov dword [esp + 0x1c], ecx
sub esi, ecx
js 0x51baf1
add esi, esi
movzx ecx, word [esp + 0x8c]
sub esi, ecx
js 0x51baf1
mov dword [esp + 0x18], ecx
add esi, esi
movzx ecx, word [esp + 4]
sub esi, ecx
js 0x51baf1
mov dword [esp + 4], edx
cmp dword [ebp + 8], 0
sete cl
test esi, esi
mov esi, 0xffffffff
je 0x51b9dc
or cl, al
jne 0x51baf6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add ecx, eax
mov word [esp + 0x52], 0
mov word [esp + 0x54], ax
mov eax, dword [esp + 4]
add eax, ecx
mov word [esp + 0x56], cx
mov ecx, dword [esp + 0x24]
add ecx, eax
mov word [esp + 0x58], ax
mov eax, dword [esp + 8]
add eax, ecx
mov word [esp + 0x5a], cx
mov ecx, dword [esp + 0x14]
add ecx, eax
mov word [esp + 0x5c], ax
mov eax, dword [esp + 0x10]
add eax, ecx
mov word [esp + 0x5e], cx
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov word [esp + 0x60], ax
mov eax, dword [esp + 0x4c]
add eax, ecx
mov word [esp + 0x62], cx
mov ecx, dword [esp + 0x20]
add ecx, eax
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x38]
add eax, ecx
mov word [esp + 0x66], cx
mov ecx, dword [esp + 0x48]
add ecx, eax
mov word [esp + 0x68], ax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov word [esp + 0x6a], cx
mov ecx, dword [esp + 0x18]
add ecx, eax
mov word [esp + 0x6c], ax
mov word [esp + 0x6e], cx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x51bab1
xor eax, eax
cmp ecx, 1
jne 0x51be00
test cl, 1
je 0x51bab1
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + eax*2]
test ecx, ecx
je 0x51bab1
movzx edx, word [esp + ecx*2 + 0x50]
lea esi, [edx + 1]
mov word [esp + ecx*2 + 0x50], si
mov ecx, dword [ebp + 0x1c]
mov word [ecx + edx*2], ax
mov eax, dword [ebp + 8]
test eax, eax
je 0x51bb0e
cmp eax, 1
jne 0x51bb2b
mov esi, 1
cmp dword [esp + 0xc], 9
ja 0x51baf6
mov al, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0x101
mov dword [esp + 0x1c], 0x690e4e
mov dword [esp + 0x18], 0x690e10
mov dword [esp + 0x40], 0
jmp 0x51bb6d
mov esi, 0xffffffff
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jmp 0x51bb65
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x690ecc
mov dword [esp + 0x18], 0x690e8c
cmp eax, 2
sete al
mov dword [esp + 0x40], eax
jne 0x51bb65
mov esi, 1
mov dword [esp + 0x30], 0
cmp dword [esp + 0xc], 9
ja 0x51baf6
jmp 0x51bb6d
mov dword [esp + 0x30], 0
mov eax, 1
mov ecx, dword [esp + 0xc]
shl eax, cl
mov dword [esp + 0x44], eax
add eax, 0xffffffff
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov esi, 1
shl esi, cl
mov dword [esp + 0x3c], esi
lea ecx, [eax + 2]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov eax, ebx
sub eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
movzx edx, word [eax + ecx*2]
movzx ecx, dx
lea eax, [ecx + 1]
mov esi, dword [esp + 0x20]
cmp eax, esi
jae 0x51bbef
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
jmp 0x51bc1e
mov eax, esi
cmp esi, ecx
jbe 0x51bc05
mov al, 0x60
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
jmp 0x51bc1e
sub ecx, eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx*2]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x28], eax
mov edx, 0xffffffff
mov ecx, dword [esp + 4]
shl edx, cl
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
shr eax, cl
mov dword [esp + 0x2c], edx
lea ecx, [edx + edx]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + eax*2]
mov esi, dword [esp + 0x3c]
mov eax, esi
nop word [eax + eax]
mov edx, dword [esp + 0x24]
mov byte [ecx + esi*4 - 2], dl
mov edx, dword [esp + 4]
mov byte [ecx + esi*4 - 1], dl
mov edx, dword [esp + 0x28]
mov word [ecx + esi*4], dx
add eax, dword [esp + 0x2c]
mov esi, eax
jne 0x51bc50
mov ecx, ebx
add cl, 0xff
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 8]
mov eax, esi
shr esi, 1
test eax, ecx
jne 0x51bc80
mov esi, ecx
lea ecx, [eax - 1]
and ecx, esi
add ecx, eax
cmp eax, 1
mov eax, 0
cmovb ecx, eax
mov dword [esp + 8], ecx
add word [esp + ebx*2 + 0x70], 0xffff
je 0x51bcb2
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
jmp 0x51bcd1
cmp ebx, edi
mov ecx, dword [esp + 0xc]
je 0x51bdc9
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x14]
movzx eax, word [eax + esi*2 + 2]
mov edx, dword [ebp + 0xc]
movzx ebx, word [edx + eax*2]
add esi, 1
mov dword [esp + 0x14], esi
cmp ebx, ecx
jbe 0x51bbbe
mov ecx, dword [esp + 8]
and ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x38]
je 0x51bbbe
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x10]
test eax, eax
cmove eax, dword [esp + 0xc]
mov ecx, ebx
sub ecx, eax
mov esi, 1
mov dword [esp + 4], ecx
shl esi, cl
cmp ebx, edi
mov dword [esp + 0x10], eax
jae 0x51bd49
mov ecx, edi
sub ecx, eax
mov dword [esp + 4], ecx
mov edx, ebx
movzx ecx, word [esp + edx*2 + 0x70]
sub esi, ecx
jle 0x51bd3a
add esi, esi
add edx, 1
cmp edx, edi
jb 0x51bd22
mov ecx, dword [esp + 4]
jmp 0x51bd3e
sub edx, eax
mov ecx, edx
mov esi, 1
mov dword [esp + 4], ecx
shl esi, cl
mov eax, dword [esp + 0x44]
add eax, esi
cmp eax, 0x354
seta ch
mov dword [esp + 0x44], eax
cmp eax, 0x250
seta cl
mov esi, 1
test byte [esp + 0x30], ch
jne 0x51baf6
and cl, byte [esp + 0x40]
mov eax, dword [esp + 0x34]
jne 0x51baf6
mov ecx, dword [esp + 0x3c]
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 4]
mov byte [ecx + esi*4], dl
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
mov edx, esi
mov byte [ecx + esi*4 + 1], al
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov esi, eax
sub esi, ecx
shr esi, 2
mov word [ecx + edx*4 + 2], si
mov ecx, dword [esp + 4]
mov dword [esp + 0x38], edx
jmp 0x51bba8
mov edx, dword [esp + 8]
test edx, edx
je 0x51bde8
mov eax, dword [esp + 0x34]
mov byte [eax + edx*4], 0x40
mov ebx, dword [esp + 4]
mov byte [eax + edx*4 + 1], bl
mov word [eax + edx*4 + 2], 0
mov edx, dword [esp + 0x44]
shl edx, 2
mov eax, dword [ebp + 0x14]
add dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
xor esi, esi
jmp 0x51baf6
mov eax, ecx
and eax, 0xfffffffe
mov dword [esp + 4], eax
xor eax, eax
jmp 0x51be1a
add eax, 2
cmp dword [esp + 4], eax
je 0x51ba8d
mov edx, dword [ebp + 0xc]
movzx esi, word [edx + eax*2]
test esi, esi
je 0x51be3c
movzx edx, word [esp + esi*2 + 0x50]
lea ecx, [edx + 1]
mov word [esp + esi*2 + 0x50], cx
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x1c]
mov word [esi + edx*2], ax
mov edx, dword [ebp + 0xc]
movzx esi, word [edx + eax*2 + 2]
test esi, esi
je 0x51be0d
movzx edx, word [esp + esi*2 + 0x50]
lea ecx, [edx + 1]
mov word [esp + esi*2 + 0x50], cx
lea ecx, [eax + 1]
mov esi, dword [ebp + 0x1c]
mov word [esi + edx*2], cx
mov ecx, dword [ebp + 0x10]
jmp 0x51be0d
mov eax, ecx
cmp word [esp + 0x78], 0
je 0x51be75
mov edi, 4
jmp 0x51be91
cmp word [esp + 0x76], 0
je 0x51be84
mov edi, 3
jmp 0x51be91
cmp word [esp + 0x74], 0
je 0x51be9a
mov edi, 2
xor ebx, ebx
mov ecx, eax
jmp 0x51b85e
cmp word [esp + 0x72], 0
je 0x51bec2
xor ecx, ecx
test eax, eax
setne cl
mov edi, 1
xor eax, eax
mov dword [esp + 4], 0
mov ebx, 1
jmp 0x51b883
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov dword [eax], 0x140
mov eax, dword [edx]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov dword [eax], 0x140
mov dword [esi], 1
jmp 0x51bdf9