Function at 0x51b420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x5ecbec]
mov dword [esp + 0x6c], ebx
mov ebx, 0x84
mov dword [esp + 0x78], ebp
xor ebp, ebp
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov dword [esp + 0x48], ebp
mov dword [esp], 0x5ee500
call dword [eax + 0x4cc]
mov ebx, eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
cmp eax, 0x112
ja 0x51b4b8
cmp eax, 0x111
jae 0x51b5f0
cmp eax, 0x2b
je 0x51b837
cmp eax, 0x2c
je 0x51b7dd
jmp 0x51b4a0
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
add esp, 0x7c
ret
cmp eax, 0x11f
je 0x51b722
ja 0x51b550
cmp eax, 0x116
jne 0x51b4a0
call fcn.004d19a0
mov eax, dword [esi]
mov dword [esp + 4], eax
lea eax, [ebx + 0x4c]
mov dword [esp], eax
call dword [ebx + 0x78]
test eax, eax
mov edi, eax
je 0x51ba30
mov dword [esp], 1
mov eax, dword [0x5ecbec]
call dword [eax + 0x3ac]
mov ebp, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
test byte [ebp + 0x8b], 0x20
mov dword [ebx + 0x10], ebp
jne 0x51bac2
mov eax, ebp
call fcn.0051b390
mov ecx, dword [ebx]
test ecx, ecx
je 0x51ba59
mov dword [esp], ebp
mov eax, 0xffffffff
mov dword [esp + 4], eax
call fcn.004cf980
mov eax, dword [esp + 0x90]
mov dword [eax], 0
jmp 0x51b92e
cmp eax, 0x120
jne 0x51b4a0
movzx eax, byte [esi]
mov byte [esp + 0x43], al
mov eax, dword [edi]
mov dword [esp + 4], eax
lea eax, [ebx + 0x4c]
mov dword [esp], eax
call dword [ebx + 0x78]
test eax, eax
je 0x51b4a0
mov ebp, dword [eax + 0xc]
xor esi, esi
mov edx, dword [esp + 0x90]
mov eax, dword [ebp + 0x14]
mov dword [edx], 0
test eax, eax
jg 0x51b5b7
jmp 0x51b4a0
cmp edi, 0xffffffff
je 0x51b5ad
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x51b983
inc esi
cmp dword [ebp + 0x14], esi
jle 0x51b4a0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51b597
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0xac]
mov dword [esp + 0x3c], eax
jmp 0x51b597
call fcn.004d19a0
cmp word [esi + 2], 0
mov eax, dword [esi]
jne 0x51b4a0
movzx eax, ax
mov dword [esp + 4], eax
lea eax, [ebx + 0x14]
mov dword [esp], eax
call dword [ebx + 0x40]
test eax, eax
je 0x51b4a0
mov edi, dword [eax + 0xc]
test edi, edi
mov dword [esp + 0x44], edi
je 0x51b538
mov ebp, dword [edi + 4]
mov eax, dword [ebp]
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004cf370
test eax, eax
je 0x51b6a7
mov eax, dword [eax + 8]
test eax, eax
je 0x51b6a7
mov ebx, eax
jmp 0x51b656
mov ebx, dword [ebx + 0xa8]
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x70]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0xac]
mov edx, dword [ebp]
mov edx, dword [edx + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x51b650
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0xa0]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*4]
cmp dword [eax + 0x14], 2
je 0x51b6a7
mov dword [esp + 4], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004cf980
mov ebx, dword [ebp + 8]
mov eax, dword [0x5ecbec]
mov dword [esp], ebx
call dword [eax + 0x32c]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xa0]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.004ce4e0
test eax, eax
mov ecx, eax
setne dl
xor eax, eax
cmp ecx, 4
setne al
test eax, edx
je 0x51b70f
cmp ecx, 3
je 0x51b70f
mov dword [esp], ebx
mov eax, 0x5dcf03
mov dword [esp + 4], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0x110]
mov dword [esp], ebx
mov eax, dword [0x5ecbec]
call dword [eax + 0x138]
mov dword [esp], ebx
mov eax, dword [0x5ecbec]
call dword [eax + 0x368]
jmp 0x51b538
movzx eax, word [esi + 2]
mov dword [esp + 0x30], eax
call fcn.004d19a0
cmp dword [esp + 0x30], 0xffff
je 0x51b9ce
mov eax, dword [edi]
test eax, eax
je 0x51b4a0
mov dword [esp + 4], eax
lea eax, [ebx + 0x4c]
mov dword [esp], eax
call dword [ebx + 0x78]
test eax, eax
je 0x51b4a0
mov ebp, dword [eax + 0xc]
test ebp, ebp
je 0x51b4a0
cmp dword [esp + 0x30], 0xffff
je 0x51ba4f
test byte [esp + 0x30], 0x10
je 0x51bae5
movzx edx, word [esi]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x51ba4f
mov edx, dword [esp + 0x44]
cmp dword [edx + 0x14], 2
je 0x51ba4f
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xa0]
cmp eax, dword [ebp + 0x14]
jge 0x51bb09
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004cf980
mov eax, ebp
call fcn.0051b2e0
mov eax, dword [0x5ecbec]
call dword [eax + 0x37c]
jmp 0x51b4a0
mov ebx, dword [edi]
test ebx, ebx
je 0x51b4a0
mov eax, dword [ebx + 0x14]
mov ebp, dword [eax + 4]
mov dword [esp + 0x44], eax
mov dword [esp], ebp
call fcn.00521ab0
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x84]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x7c]
mov dword [ebx + 0xc], eax
mov ecx, dword [edx + 0x5c]
test ecx, ecx
je 0x51ba01
mov edx, dword [0x5ee4f4]
sub eax, edx
add eax, 2
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [eax], 1
jmp 0x51b92e
mov edi, dword [edi]
xor eax, eax
mov dword [esp + 0x34], eax
test edi, edi
je 0x51b4a0
mov edx, dword [edi + 0x2c]
mov eax, dword [0x5ecbec]
mov ebp, dword [edx + 4]
mov dword [esp + 0x44], edx
mov dword [esp], 0x10
call dword [eax + 0x14]
mov dword [esp + 0x38], eax
mov dword [eax], 3
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x38]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
cmp dword [eax + 0x14], 2
je 0x51b94f
test byte [edi + 0x10], 1
je 0x51b9c4
mov eax, dword [eax + 0xa0]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004cf980
mov eax, dword [ebp + 0x38]
lea ebx, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp]
xor ebp, ebp
mov dword [esp], eax
call fcn.004bebc0
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], ebx
call fcn.004bede0
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], edx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x28]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x24]
sub eax, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
mov dword [esp], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call fcn.0051a220
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0x18]
mov edx, dword [esp + 0x90]
mov dword [edx], 1
mov eax, 1
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x78]
add esp, 0x7c
ret
test byte [edi + 0x10], 1
je 0x51ba3c
mov eax, dword [esp + 0x44]
or dword [eax + 0x9c], 0x40000000
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, eax
jne 0x51b89e
mov eax, 1
mov dword [esp + 0x34], eax
jmp 0x51b89e
movzx eax, byte [esp + 0x43]
mov dword [esp], eax
call sub.USER32.dll_CharUpperA
sub esp, 4
mov ebx, eax
mov edx, dword [esp + 0x3c]
movzx eax, byte [edi + edx]
mov dword [esp], eax
call sub.USER32.dll_CharUpperA
sub esp, 4
cmp ebx, eax
jne 0x51b5ad
mov edx, dword [esp + 0x90]
or esi, 0x20000
mov dword [edx], esi
jmp 0x51b92e
mov eax, 0xffffffff
jmp 0x51b892
mov eax, dword [edi]
test eax, eax
jne 0x51b747
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x51b4a0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0x3ac]
mov eax, dword [ebx + 0x10]
call fcn.0051b390
jmp 0x51b4a0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004b1370
mov eax, dword [esp + 0x4c]
add eax, eax
add dword [ebx + 0xc], eax
jmp 0x51b825
mov dword [ebx + 0x10], 0
jmp 0x51b4a0
mov edx, dword [esp + 0x44]
and dword [edx + 0x9c], 0xbfffffff
jmp 0x51b967
mov eax, 0xffffffff
jmp 0x51b7ba
mov ebx, dword [ebp + 8]
mov eax, dword [0x5ecbec]
mov dword [esp], ebx
call dword [eax + 0x32c]
mov dword [esp], ebp
call fcn.00544d30
test eax, eax
mov ecx, eax
setne dl
xor eax, eax
cmp ecx, 4
setne al
test eax, edx
je 0x51baaf
cmp ecx, 3
je 0x51baaf
mov dword [esp], ebx
mov eax, dword [0x5ecbec]
mov edx, 0x5dcf16
mov dword [esp + 4], edx
call dword [eax + 0x110]
mov dword [esp], ebx
mov eax, dword [0x5ecbec]
call dword [eax + 0x138]
mov dword [esp], ebx
mov eax, dword [0x5ecbec]
call dword [eax + 0x368]
jmp 0x51b527
mov dword [esp + 4], ebp
mov eax, dword [0x5ecbec]
mov dword [esp], fcn.00518810
call dword [eax + 0x148]
mov dword [esp], ebp
call fcn.00518810
jmp 0x51b516
movzx eax, word [esi]
mov dword [esp + 4], eax
lea eax, [ebx + 0x14]
mov dword [esp], eax
call dword [ebx + 0x40]
test eax, eax
je 0x51ba4f
mov edi, dword [eax + 0xc]
mov dword [esp + 0x44], edi
jmp 0x51b78d
mov dword [esp], 0x5dcf30
mov eax, dword [0x5ecbec]
call dword [eax + 0x10]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xa0]
jmp 0x51b7ba