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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51cf0c
sub esp, 0x70
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x51cda2
mov eax, dword [esp + 0x80]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
test ecx, ecx
jne 0x51cd90
mov dword [esp + 0x44], ebx
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
lea edi, [eax + ebp]
mov dword [esp + 0x1c], edi
mov esi, dword [edx + 8]
mov edx, dword [edx + 4]
lea ebx, [esi - 1]
test ebx, ebx
jl 0x51cd89
mov edx, dword [edx + esi*4 - 4]
cmp edx, 0x10000
jb 0x51cd82
shr edx, 0x10
mov esi, 0x10
cmp edx, 0x100
jb 0x51ca5a
shr edx, 8
add esi, 8
cmp edx, 0x100
jae 0x51cee4
shl ebx, 5
lea edi, [0xb49640]
movzx edx, byte [edx + edi]
add edx, esi
add edx, ebx
lea ebx, [eax + ebp + 0xb]
lea esi, [edx + 7]
sar esi, 0x1f
shr esi, 0x1d
lea edx, [esi + edx + 7]
sar edx, 3
cmp edx, ebx
jl 0x51cd64
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebp
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004e8d50
mov eax, dword [esp + 0x10]
mov byte [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x50]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0051f600
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call fcn.004e8de0
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x2c]
cmp eax, edx
jle 0x51cd5b
mov ebx, edx
mov dword [esp + 0x40], edx
lea eax, [0x7b4b60]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00438a20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x40]
mov ebp, ecx
sub ecx, ebx
cmp ecx, ebp
ja 0x51cedd
mov ebx, eax
sub eax, ecx
neg eax
sar eax, 0x1f
and eax, ecx
add eax, edx
mov esi, ebp
sub ebp, ecx
mov ecx, dword [esp + 0x30]
cmp ebp, ecx
jle 0x51cd54
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], edx
mov ebp, dword [esp + 0x48]
cmp eax, ebp
je 0x51cbc3
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.0044d190
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x51ced6
mov ecx, dword [esp + 0x4c]
movzx edx, byte [ecx]
cmp eax, 1
jbe 0x51cecf
movzx ebx, byte [ecx + 1]
dec edx
shr edx, 0x1f
xor ebx, 1
movzx ebx, bl
dec ebx
shr ebx, 0x1f
and edx, ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov esi, ebx
sub ebx, ebp
cmp ebx, esi
ja 0x51cec8
mov ebp, dword [esp + 0x40]
cmp esi, ebp
ja 0x51cec8
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ebx
sub ebp, ebx
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ebx
add ebp, ecx
mov dword [esp], ebp
sub esi, ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x14], edx
call fcn.004d64d0
mov eax, dword [esp + 0x28]
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
sub ecx, edx
mov edx, dword [esp + 0x38]
cmp ecx, edx
ja 0x51cec1
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x40]
sub eax, ecx
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, ecx
mov ebp, dword [esp + 0x4c]
add eax, ebp
mov dword [esp], eax
sub edx, ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
call fcn.004d64d0
mov eax, dword [esp + 0x28]
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
lea edx, [ecx - 1]
mov ebx, dword [esp + 0x3c]
cmp edx, ebx
jae 0x51ceba
mov ebp, dword [esp + 0x4c]
movzx ecx, byte [ecx + ebp - 1]
dec ecx
shr ecx, 0x1f
and ecx, eax
mov eax, 2
jmp 0x51cd0a
lea esi, [eax + 1]
movzx edi, byte [ebp + eax]
xor edi, 0xffffffff
xchg edi, eax
movzx eax, al
xchg edi, eax
dec edi
shr edi, 0x1f
and ecx, edi
mov eax, esi
cmp eax, edx
jge 0x51cd17
cmp eax, ebx
jb 0x51ccf2
jmp 0x51ceb3
cmp ecx, 1
je 0x51cd3a
mov eax, dword [0xb801ac]
mov ecx, dword [0xb801a8]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x70
ret
mov ecx, ebp
jmp 0x51cb9f
mov ebx, edx
mov edx, eax
jmp 0x51cb4c
mov eax, dword [0xb801a8]
mov ecx, dword [0xb801ac]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x70
ret
xor esi, esi
jmp 0x51ca4c
xor edx, edx
jmp 0x51ca77
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x70
ret
lea ecx, [eax - 1]
cmp ecx, 0x13
jae 0x51cef2
mov ecx, dword [0xb78964]
mov edx, dword [0xb78960]
cmp eax, ecx
jae 0x51ceeb
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x80]
cmp ecx, edx
je 0x51ce1e
lea eax, [0x7d00e0]
mov dword [esp], eax
call fcn.00409c40
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x28
mov eax, dword [0xb92b90]
test eax, eax
jne 0x51ce11
lea eax, [0x848383]
mov dword [edi], eax
xor eax, eax
lea ecx, [0x8b2890]
mov edx, edi
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x51ca06
lea eax, [0x848383]
call fcn.0044c990
jmp 0x51cdfc
mov dword [esp + 0x40], ecx
lea ecx, [0x7b8700]
mov dword [esp], ecx
mov ecx, dword [0xb7fa30]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040cc70
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
movzx edx, byte [esp + 0x10]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
test dl, dl
je 0x51ce66
xor edx, edx
mov ebp, eax
mov esi, ebx
mov eax, dword [esp + 0x40]
mov ebx, ecx
xor ecx, ecx
jmp 0x51ca06
lea eax, [0x7d00e0]
mov dword [esp], eax
call fcn.00409c40
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x25
mov eax, dword [0xb92b90]
test eax, eax
jne 0x51cea6
lea eax, [0x846db0]
mov dword [edi], eax
xor eax, eax
lea ecx, [0x8b2890]
mov edx, edi
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x51ca06
lea eax, [0x846db0]
call fcn.0044c990
jmp 0x51ce91
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.004265e0
ud2
call fcn.004265e0
ud2
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.004265e0
ud2
call fcn.004264e0
ud2
call fcn.004264e0
ud2
lea eax, [0x7b48a0]
mov dword [esp], eax
lea eax, [0x8b0d40]
mov dword [esp + 4], eax
call fcn.004273c0
ud2
call fcn.0044b230
jmp fcn.0051c9d0