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

Disassembly:
mov ecx, dword [0x6d0e30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x511883
sub esp, 0x68
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x511342
test eax, 0x200
jne 0x511342
lea ecx, [0x5b7028]
mov edx, dword [esp + 0x74]
jmp 0x511366
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0048bbe0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x28]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
cmp dword [0x692420], eax
jne 0x51141e
mov ecx, dword [esp + 8]
mov edx, dword [0x692424]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404ae0
movzx eax, byte [esp + 0xc]
test al, al
je 0x51141e
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 8]
mov esi, dword [esp + 0x20]
mov dword [edx + 8], esi
mov esi, dword [0x6d0ed8]
test esi, esi
jne 0x5113ca
mov esi, dword [esp + 0x40]
jmp 0x5113db
call fcn.00464b00
mov esi, dword [esp + 0x40]
mov dword [edi], esi
mov eax, dword [edx + 0xc]
mov dword [edi + 4], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebp
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x70]
mov edi, dword [esi + 0x28]
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
jmp 0x5114a3
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [0x58076e]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x15
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0050d3a0
mov byte [esp + 0x80], 0
add esp, 0x68
ret
mov ebx, dword [esp + 0x30]
add ebx, 2
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
cmp ebx, edi
jge 0x5117ac
mov ebp, dword [esi + 0x28]
cmp ebx, ebp
jae 0x511879
mov ebp, dword [esi + 0x24]
mov ebp, dword [ebp + ebx*4]
cmp dword [ebp], 8
jne 0x51153c
cmp dword [ebp + 0x1c], 2
jne 0x511538
mov edi, dword [ebp + 0x18]
cmp word [edi], 0x3c3c
jne 0x511530
movzx edi, byte [ebp + 0x20]
xchg edi, eax
test al, al
xchg edi, eax
je 0x5114e8
mov ebp, 1
jmp 0x51152a
cmp dword [ebp + 0x10], 0x17
je 0x5114f2
xor ebp, ebp
jmp 0x51152a
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
lea eax, [0x5814de]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x17
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x70]
mov ebp, eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x3c]
jmp 0x51153e
mov edi, dword [esp + 0x3c]
xor ebp, ebp
jmp 0x51153e
xor ebp, ebp
jmp 0x51153e
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x511586
mov ebp, dword [esi + 0x28]
lea edi, [ebx + 1]
cmp ebp, edi
jbe 0x511870
mov ebp, dword [esi + 0x24]
mov ebp, dword [ebp + ebx*4 + 4]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.005126c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
jmp 0x511468
lea eax, [0x561c60]
mov dword [esp], eax
call fcn.0040caa0
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
lea ecx, [0x54e620]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x5115ea
movzx ebx, byte [edx + 0xf]
nop
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x5115e4
or ebx, 0x80
mov ebp, dword [esp + 0x60]
jmp 0x5115f0
xor ebx, ebx
xor edx, edx
xor ebp, ebp
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00488630
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jae 0x511869
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + 0x24]
mov esi, dword [esi + edx*4]
mov edi, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050de10
movzx eax, byte [esp + 0x14]
test al, al
jne 0x51165b
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
jmp 0x511468
mov eax, dword [esp + 0x64]
lea ecx, [eax + 8]
lea edx, [0x54e620]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x511695
movzx ebx, byte [ecx + 0xf]
nop
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x51168f
or ebx, 0x80
mov ebp, dword [esp + 0x58]
jmp 0x51169b
xor ebx, ebx
xor ecx, ecx
xor ebp, ebp
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00488630
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x30]
lea ebx, [edx + 1]
cmp ecx, ebx
jbe 0x511862
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + 0x24]
mov esi, dword [esi + edx*4 + 4]
mov edi, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050de10
movzx eax, byte [esp + 0x14]
test al, al
je 0x51179b
mov edx, dword [esp + 0x24]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jb 0x511712
mov eax, dword [esp + 0x44]
mov ecx, ebx
jmp 0x511744
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x561c60]
mov dword [esp + 0x10], eax
call fcn.0044b6b0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x64]
mov ebp, dword [ebx]
mov esi, dword [ebx + 8]
lea edi, [edx - 1]
shl edi, 4
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx + 0xc]
mov dword [eax + edi], ebp
mov dword [eax + edi + 8], esi
mov ebp, dword [0x6d0ed8]
test ebp, ebp
je 0x51178a
mov ebp, edi
call fcn.00464b20
mov dword [edi], ecx
mov esi, dword [eax + ebp + 4]
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov esi, dword [eax + ebp + 0xc]
mov dword [edi + 0xc], esi
mov edi, ebp
mov dword [eax + edi + 4], ecx
mov dword [eax + edi + 0xc], ebx
mov ecx, dword [esp + 0x28]
jmp 0x511468
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
jmp 0x511468
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.0040a3b0
mov eax, dword [esp + 0xc]
lea ecx, [0x553020]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x5117f9
movzx edx, byte [ecx + 0xf]
nop
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x5117ff
or edx, 0x80
jmp 0x5117ff
xor edx, edx
xor ecx, ecx
xor eax, eax
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.0048ac20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 8], eax
mov eax, dword [0x6d0ed8]
test eax, eax
jne 0x511842
mov eax, dword [esp + 0x48]
jmp 0x511853
call fcn.00464b00
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov edx, dword [ecx + 0xc]
mov dword [edi + 4], edx
mov dword [ecx + 0xc], eax
mov byte [esp + 0x80], 1
add esp, 0x68
ret
mov eax, ebx
call fcn.00464b70
mov eax, edx
call fcn.00464b70
mov eax, edi
mov ecx, ebp
call fcn.00464b70
mov eax, ebx
mov ecx, ebp
call fcn.00464b70
nop
call fcn.004636f0
jmp fcn.00511310