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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51ebf0
sub esp, 0x4c
mov eax, dword [esp + 0x54]
test eax, 4
je 0x51e943
mov ecx, 8
mov edx, 1
mov ebx, 1
jmp 0x51e967
test eax, 2
je 0x51e95b
mov ecx, 4
mov edx, 2
mov ebx, 1
jmp 0x51e967
mov ecx, 2
mov edx, 4
xor ebx, ebx
mov byte [esp + 0x27], bl
test eax, 8
je 0x51e978
shl ecx, 4
or edx, 0x20
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x50]
mov ebx, ecx
sar ecx, 0x1f
mov ebp, dword [esp + 0x60]
add ebp, ebx
mov edi, dword [esp + 0x64]
adc ecx, edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
call fcn.0051deb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x51ea51
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x51e9d3
xor eax, eax
xor ecx, ecx
jmp 0x51ea2d
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
lea ecx, [0x6881e0]
mov dword [esp], ecx
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x11
lea ecx, [0x6be59a]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [0x90f128]
test ecx, ecx
jne 0x51ea17
mov ecx, dword [esp + 0x44]
jmp 0x51ea22
call fcn.00471460
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov ecx, eax
lea eax, [0x71d674]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x4c
ret
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
call fcn.0051e370
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x51eb25
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call fcn.0051ddd0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x51eab3
xor eax, eax
xor ecx, ecx
jmp 0x51eb01
lea eax, [0x6881e0]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xd
lea ecx, [0x6bc05b]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [0x90f128]
test ecx, ecx
jne 0x51eaeb
mov ecx, dword [esp + 0x44]
jmp 0x51eaf6
call fcn.00471460
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov ecx, eax
lea eax, [0x71d674]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x4c
ret
mov dword [esp + 0x34], eax
lea eax, [0x90ef30]
mov dword [esp], eax
call fcn.0047aea0
lea eax, [0x692660]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
movzx ecx, byte [esp + 0x27]
mov byte [eax + 8], cl
mov ecx, dword [0x8ef0fc]
lea edx, [0x67a780]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call fcn.00468400
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x90f128]
test ecx, ecx
jne 0x51eb98
mov ecx, dword [esp + 0x48]
jmp 0x51eba8
call fcn.00471470
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
lea eax, [0x90ef30]
mov dword [esp], eax
call fcn.0047b220
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x4c
ret
call fcn.00470060
jmp fcn.0051e910