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

Disassembly:
mov al, byte [0x620ce8]
sub esp, 0x1ec
test al, al
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x511333
mov eax, dword [0x620cd4]
mov byte [0x620f08], 0
push 0
push 0x89
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
jmp 0x51134f
mov eax, dword [0x620cd4]
mov byte [0x620f08], 1
push 1
push 0x89
mov edx, dword [eax]
push eax
call dword [edx + 0xc8]
mov ecx, 0x620cd0
call fcn.0040cf90
mov ecx, 0x620cd0
call fcn.0040dae0
mov al, byte [0x620cf4]
test al, al
mov eax, dword [0x620cd4]
jne 0x511380
mov ecx, dword [eax]
push 0
push 7
push eax
call dword [ecx + 0xc8]
jmp 0x51138d
mov edx, dword [eax]
push 1
push 7
push eax
call dword [edx + 0xc8]
mov al, byte [0x620cf4]
test al, al
mov eax, dword [0x620cd4]
jne 0x5113aa
mov ecx, dword [eax]
push 0
push 0xe
push eax
call dword [ecx + 0xc8]
jmp 0x5113b7
mov edx, dword [eax]
push 1
push 0xe
push eax
call dword [edx + 0xc8]
mov eax, dword [0x620cd4]
push 1
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x620cd4]
push 1
push 0x16
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x620cd4]
push 5
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x620cd4]
push 6
push 0x14
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov ecx, dword [0x638a90]
mov esi, 8
xor ebx, ebx
mov dword [0x620cf8], esi
mov dword [0x620cfc], 0x142
mov dword [0x620d00], ebx
call fcn.004961f0
mov al, byte [ebp + 1]
mov ecx, 4
test al, al
jne 0x511437
mov dword [esp + 0x10], ecx
cmp al, 1
jne 0x511443
mov dword [esp + 0x10], 6
cmp al, 2
jne 0x51144b
mov dword [esp + 0x10], ecx
cmp al, 3
jne 0x511457
mov dword [esp + 0x10], 3
cmp al, 4
jne 0x51145f
mov dword [esp + 0x10], ecx
cmp al, 5
jne 0x511467
mov dword [esp + 0x10], ecx
cmp al, 6
jne 0x511473
mov dword [esp + 0x10], 3
cmp al, 7
jne 0x51147b
mov dword [esp + 0x10], ecx
lea eax, [ebp + 0x10c]
mov ecx, 0x620cd0
push eax
call fcn.0040cfd0
mov edx, dword [ebp + 0x344]
mov eax, dword [0x620cd4]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0xf4]
lea eax, [esp + 0x30]
push ebx
mov dword [0x620cf8], esi
mov dword [0x620cfc], 0x112
mov dword [0x620d00], ebx
mov ecx, dword [ebp + 0x34c]
push eax
push ebx
push ebx
push ecx
mov ecx, 0x620cd0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0x3e4ccccd
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], 0x3e4ccccd
mov dword [esp + 0x4c], 0xbf79999a
mov dword [esp + 0x50], 0x3f79999a
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0xbf800000
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3f833333
mov dword [esp + 0x70], 0x3f79999a
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xbf800000
mov dword [esp + 0x84], 0x3e4ccccd
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0xbf79999a
mov dword [esp + 0x90], 0xbf833333
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0xbf800000
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0x3e4ccccd
mov dword [esp + 0xac], 0x3f833333
mov dword [esp + 0xb0], 0xbf833333
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0xbf800000
mov dword [esp + 0xc4], 0x3e4ccccd
mov dword [esp + 0xc8], 0x3e4ccccd
call fcn.0040d2b0
mov edi, dword [esp + 0x30]
mov ecx, 0x20
lea esi, [esp + 0x38]
push 1
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0x34c]
mov ecx, 0x620cd0
push edx
call fcn.0040d2f0
mov eax, dword [ebp + 0x34c]
push 0x20
push eax
push ebx
mov ecx, 0x620cd0
call fcn.0040d450
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x511718
mov ecx, eax
lea ebx, [ebp + 0x1ac]
mov dword [esp + 0x14], ecx
push 0xbcf5c28f
push 0
lea edx, [esp + 0x1c4]
push 0
push edx
mov ecx, 0x65cb50
call fcn.004937c0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x17c]
lea eax, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
push eax
call fcn.00498df0
lea ecx, [esp + 0x17c]
push eax
lea edx, [esp + 0x180]
push ecx
push edx
call fcn.0055734a
mov eax, dword [0x620cd4]
lea edx, [esp + 0x17c]
push edx
push 0x100
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x620cd4]
push 0x112
push eax
mov ecx, dword [eax]
call dword [ecx + 0x130]
push 2
push 0
push 5
mov ecx, 0x620cd0
call fcn.0040d710
mov eax, dword [esp + 0x14]
add ebx, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x51167b
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
jle 0x511b74
mov dword [esp + 0xfc], 0xbf800000
mov dword [esp + 0x100], 0x3f800000
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], 0xbf800000
mov dword [esp + 0x11c], 0x3f800000
mov dword [esp + 0x120], 0x3f800000
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], 0xbf800000
mov dword [esp + 0x13c], 0xbf800000
mov dword [esp + 0x140], 0xbf800000
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], 0xbf800000
mov dword [esp + 0x15c], 0x3f800000
mov dword [esp + 0x160], 0xbf800000
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], ebx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x170], 0xbf800000
test ebx, ebx
jne 0x511814
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
jmp 0x51188d
cmp ebx, 1
jne 0x511823
mov dword [esp + 0x20], 0
jmp 0x511847
cmp ebx, 2
jne 0x51183a
mov dword [esp + 0x20], 0x3e4ccccd
mov dword [esp + 0x2c], 0x3e4ccccd
jmp 0x511885
cmp ebx, 3
jne 0x511859
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x2c], 0x3f800000
mov dword [esp + 0x14], 0
jmp 0x51188d
cmp ebx, 4
jne 0x511870
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0x3f800000
jmp 0x511885
cmp ebx, 5
jne 0x51188d
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], 0x3f800000
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc8], edx
lea edx, [esp + 0xb8]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xd0], ecx
push edx
mov ecx, 0x620cd0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd8], 0x3f800000
mov dword [esp + 0xdc], 0x3f800000
mov dword [esp + 0xe0], 0x3f800000
mov dword [esp + 0xe4], 0x3f800000
mov dword [esp + 0xe8], 0x3f800000
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0x42480000
call fcn.0040cfd0
mov al, byte [ebx + ebp + 0x33c]
test al, al
jne 0x511979
mov dword [esp + 0x1c], 0x3ecccccd
mov dword [esp + 0x24], 0x3f19999a
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x3e4ccccd
cmp al, 1
jne 0x51199d
mov dword [esp + 0x1c], 0x3f19999a
mov dword [esp + 0x24], 0x3f4ccccd
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x3e4ccccd
cmp al, 2
jne 0x5119c1
mov dword [esp + 0x1c], 0x3f4ccccd
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x3e4ccccd
cmp al, 3
jne 0x5119e5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x3e4ccccd
mov dword [esp + 0x28], 0x3e4ccccd
mov dword [esp + 0x18], 0x3ecccccd
cmp al, 4
jne 0x511a09
mov dword [esp + 0x1c], 0x3e4ccccd
mov dword [esp + 0x24], 0x3ecccccd
mov dword [esp + 0x28], 0x3e4ccccd
mov dword [esp + 0x18], 0x3ecccccd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], ecx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x134], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x154], ecx
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x158], edx
mov ecx, edx
lea edx, [esp + 0x34]
push 0
mov dword [esp + 0x178], eax
mov dword [0x620cf8], 8
mov dword [0x620cfc], 0x112
mov dword [0x620d00], 0
mov eax, dword [ebp + 0x34c]
push edx
push 0
mov dword [esp + 0x184], ecx
push 0
push eax
mov ecx, 0x620cd0
call fcn.0040d2b0
mov edi, dword [esp + 0x34]
mov ecx, 0x20
lea esi, [esp + 0xfc]
push 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x34c]
push ecx
mov ecx, 0x620cd0
call fcn.0040d2f0
mov edx, dword [ebp + 0x34c]
push 0x20
push edx
push 0
mov ecx, 0x620cd0
call fcn.0040d450
push 0xbcfdf3b6
push 0xbe800000
lea eax, [esp + 0x40]
push 0x3d4ccccd
push eax
mov ecx, 0x65cb50
call fcn.004937c0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1bc]
push ecx
mov ecx, dword [ebp + ebx*4 + 0x1ac]
call fcn.00498df0
push eax
lea edx, [esp + 0x180]
lea eax, [esp + 0x180]
push edx
push eax
call fcn.0055734a
mov eax, dword [0x620cd4]
lea edx, [esp + 0x17c]
push edx
push 0x100
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x620cd4]
push 0x112
push eax
mov ecx, dword [eax]
call dword [ecx + 0x130]
push 2
push 0
push 5
mov ecx, 0x620cd0
call fcn.0040d710
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x5117fe
mov ecx, dword [0x638a90]
call fcn.004968b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret