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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51df8e
sub esp, 0x5c
mov eax, 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov byte [esp + 0x1f], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x60]
test byte [eax], al
mov dword [esp], eax
mov byte [esp + 4], 0
call fcn.0051bab0
movzx eax, byte [esp + 8]
test al, al
je 0x51dc27
mov eax, dword [esp + 0x60]
xor ecx, ecx
xor ebx, ebx
jmp 0x51dc50
mov eax, dword [esp + 0x60]
movzx ecx, byte [eax + 0x12f]
test cl, cl
je 0x51dc44
mov ecx, dword [0x7e6d30]
mov ebx, dword [0x7e6d34]
jmp 0x51dc50
lea ecx, [0x6b99ec]
lea ebx, [0x82b6e0]
test ecx, ecx
jne 0x51dcf3
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea ecx, [0x51dfe0]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov byte [esp + 0x1f], 1
movzx ecx, byte [eax + 0x12f]
test cl, cl
jne 0x51dc95
mov ecx, 1
jmp 0x51dcdf
lea ecx, [eax + 0xf8]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
call fcn.00475060
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x51dfa0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x58], eax
mov byte [esp + 0x1f], 3
mov eax, dword [esp + 0x60]
mov ecx, 3
mov byte [esp + 0x1e], cl
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
xor esi, esi
jmp 0x51dd33
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
mov eax, edi
mov edi, dword [esp + 0x30]
sub edi, ecx
mov edx, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, ecx
sub eax, ecx
mov ecx, dword [esp + 0x3c]
add edi, ecx
movzx ecx, byte [esp + 0x1e]
mov ebx, edi
mov ebp, edx
mov edx, eax
mov eax, dword [esp + 0x60]
test edx, edx
je 0x51df32
cmp edx, 0x40000000
jle 0x51dd4a
mov edi, 0x40000000
jmp 0x51dd4c
mov edi, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], esi
movzx ecx, byte [eax + 0x12f]
test cl, cl
je 0x51de4f
cmp byte [eax + 0x130], 2
jne 0x51dda9
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
call fcn.0051e020
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
lea ebp, [0x6b994c]
mov esi, eax
mov eax, ecx
mov ecx, esi
jmp 0x51de40
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
call fcn.00502b70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
cmp byte [ebx + 0x130], 3
jne 0x51de3a
lea ebp, [0x6b994c]
cmp eax, ebp
je 0x51dde7
xor esi, esi
jmp 0x51de26
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], edx
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [0x6b8b40]
mov dword [esp + 8], ecx
call fcn.00404d00
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x60]
lea ebp, [0x6b994c]
mov esi, eax
mov eax, dword [esp + 0x28]
xchg esi, eax
test al, al
xchg esi, eax
je 0x51de40
mov eax, dword [0x7e6d30]
mov edx, dword [0x7e6d34]
jmp 0x51de40
lea ebp, [0x6b994c]
test eax, eax
je 0x51ded1
xor ecx, ecx
jmp 0x51ded1
nop
mov dword [eax + 0xac], edi
mov ecx, dword [0x82b968]
test ecx, ecx
je 0x51de75
mov dword [esp + 0x34], edi
mov ecx, dword [eax + 0xb0]
call fcn.0046b930
mov dword [edi], ecx
mov edi, dword [esp + 0x34]
mov dword [eax + 0xb0], 0
test edi, edi
je 0x51dea3
mov ecx, dword [0x82b968]
test ecx, ecx
je 0x51de9d
call fcn.0046b940
mov dword [edi], ebx
mov ecx, dword [eax + 0xb0]
mov dword [edi + 4], ecx
mov dword [eax + 0xb0], ebx
lea ecx, [eax + 0x84]
mov dword [esp], ecx
lea ecx, [0x6741c0]
mov dword [esp + 4], ecx
call fcn.0051c780
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x60]
lea ebp, [0x6b994c]
mov esi, dword [esp + 0x20]
add esi, ecx
test eax, eax
jne 0x51deec
mov edi, dword [esp + 0x2c]
cmp ecx, edi
jbe 0x51dd07
jmp 0x51df7b
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
movzx eax, byte [esp + 0x1e]
test al, 2
je 0x51df1a
and eax, 0xfffffffd
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov edx, dword [esp + 0x58]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x1e]
test al, 1
je 0x51df2e
and eax, 0xfffffffe
mov byte [esp + 0x1f], al
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
test cl, 2
je 0x51df63
and ecx, 0xfffffffd
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], cl
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
movzx ecx, byte [esp + 0x1e]
test cl, 1
je 0x51df77
and ecx, 0xfffffffe
mov byte [esp + 0x1f], cl
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
mov eax, ecx
mov ecx, edi
call fcn.0046ba10
nop
call fcn.00438d70
add esp, 0x5c
ret
call fcn.0046a530
jmp fcn.0051dbc0