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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x51f0ac
sub esp, 0xac
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
lea edx, [0x6d9a7c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.004c4260
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x51eba6
mov edx, dword [esp + 0xb4]
cmp edx, ecx
jb 0x51f0a6
lea eax, [ecx + 1]
cmp edx, eax
jb 0x51f09f
mov dword [esp + 0x38], ecx
sub edx, ecx
dec edx
mov ebx, edx
neg edx
sar edx, 0x1f
and eax, edx
mov edx, dword [esp + 0xb0]
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0051f9d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x51eb1e
mov dword [esp + 0x80], ebx
mov dword [esp + 0x64], edx
nop
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea eax, [0x68159c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004c4650
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
lea edx, [0x657720]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.0044f930
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
mov ebx, dword [esp + 0x28]
jmp 0x51ebfc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
test eax, eax
je 0x51eb3f
mov eax, dword [eax + 4]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
lea eax, [0x689dbd]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b9b20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xac
ret
lea eax, [0x655bc0]
mov dword [esp], eax
call fcn.0040c880
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2f
lea ecx, [0x690350]
mov dword [eax], ecx
mov dword [esp + 0xb8], 0
lea ecx, [0x6db5d4]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
add esp, 0xac
ret
mov dword [esi], edx
mov esi, dword [esp + 0x4c]
inc esi
mov edx, eax
mov eax, ebp
mov ebx, ecx
mov ecx, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x6c], eax
mov ebp, dword [esp + 0x28]
cmp ecx, ebp
jge 0x51edae
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x50]
lea edx, [eax + ecx*8]
mov ebx, dword [edx]
mov dword [esp + 0x70], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x48], edx
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.00520900
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x51ecd4
mov eax, dword [esp + 0x40]
inc eax
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jb 0x51ec63
mov ebp, dword [esp + 0x6c]
jmp 0x51ecab
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x657720]
mov dword [esp + 0x10], eax
call fcn.0044fab0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x60]
mov ebp, eax
mov eax, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x7c]
lea esi, [ebp + eax*8 - 8]
mov dword [esi], ebx
mov ebx, dword [0x8489b0]
lea esi, [ebp + eax*8 - 4]
test ebx, ebx
je 0x51ebed
call fcn.0046a610
mov dword [edi], edx
mov ebx, dword [esi]
mov dword [edi + 4], ebx
jmp 0x51ebed
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.0040a0d0
mov eax, dword [esp + 8]
lea ecx, [0x64c320]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x51ed43
mov eax, dword [eax + 4]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa8], eax
lea eax, [0x68c34f]
mov dword [esp], eax
mov dword [esp + 4], 0x23
lea eax, [esp + 0x9c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004b9b20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xac
ret
test edx, edx
je 0x51edfd
lea eax, [0x680400]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0044f930
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov byte [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
xor ecx, ecx
jmp 0x51ee4c
lea eax, [0x655bc0]
mov dword [esp], eax
call fcn.0040c880
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x68b700]
mov dword [eax], ecx
mov dword [esp + 0xb8], 0
lea ecx, [0x6db5d4]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
add esp, 0xac
ret
mov dword [ebx + edx*4], eax
inc edx
mov eax, ebx
mov ecx, edx
mov edx, dword [esp + 0x40]
cmp ecx, edx
jge 0x51eff2
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x6c]
lea edx, [eax + ecx*8]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov ebx, dword [ebx + 0x14]
mov dword [esp], edx
call ebx
mov eax, dword [esp + 4]
lea ecx, [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004e9d20
lea eax, [0x65c2e0]
mov dword [esp], eax
call fcn.0040c880
mov eax, dword [esp + 4]
lea ecx, [esp + 0x8c]
cmp eax, ecx
je 0x51efc1
mov dword [esp + 0x58], eax
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
cmp ebx, edx
jg 0x51eecf
mov esi, dword [eax + 4]
mov edi, ebx
jmp 0x51ef57
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], ebx
cmp ebx, 1
jne 0x51ef1d
lea eax, [0x64cc60]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044f930
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x8c]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
mov ebx, 1
mov edx, 1
jmp 0x51ef57
lea eax, [0x64cc60]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [ebx + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 8], ecx
call fcn.0044f930
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x8c]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
mov ebx, edi
mov edx, dword [esp + 0x30]
cmp ebx, edi
jg 0x51ef5d
mov edi, ebx
cmp esi, ebp
je 0x51ef97
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], esi
mov dword [esp], esi
mov dword [esp + 4], ebp
shl edi, 2
mov dword [esp + 8], edi
call fcn.0046af80
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x54]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov edx, dword [0x8489b0]
test edx, edx
je 0x51efb4
call fcn.0046a610
mov dword [edi], esi
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov dword [eax + 4], esi
movzx edx, byte [esp + 0x8c]
mov byte [eax], dl
mov edx, dword [0x8489b0]
test edx, edx
jne 0x51efd8
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x74]
jmp 0x51ee44
call fcn.0046a610
mov dword [edi], eax
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + edx*4]
mov dword [edi + 4], ebp
jmp 0x51ee44
lea eax, [0x661220]
mov dword [esp], eax
call fcn.0040c880
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x80]
mov dword [eax], ecx
mov ecx, dword [0x8489b0]
test ecx, ecx
jne 0x51f01d
mov ecx, dword [esp + 0x64]
jmp 0x51f028
call fcn.0046a600
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x10], edx
mov edx, dword [0x8489b0]
test edx, edx
jne 0x51f049
mov edx, dword [esp + 0x6c]
jmp 0x51f054
call fcn.0046a600
mov edx, dword [esp + 0x6c]
mov dword [edi], edx
mov dword [eax + 8], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [0x8489b0]
test ecx, ecx
jne 0x51f06d
mov ecx, dword [esp + 0x74]
jmp 0x51f078
call fcn.0046a600
mov ecx, dword [esp + 0x74]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
add esp, 0xac
ret
mov ecx, edx
call fcn.0046a6d0
call fcn.0046a690
nop
call fcn.00469200
jmp fcn.0051e9f0