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

Disassembly:
sub esp, 0x4a8
push ebx
mov ebx, dword [esp + 0x4b0]
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
mov dword [esp + 0x14], edi
jne 0x58207a
push 0x3c8
call fcn.0071528c
mov esi, eax
add esp, 4
test esi, esi
je 0x582070
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebx + 0x7c]
push edx
push eax
mov ecx, edi
call fcn.005c618c
mov ecx, dword [ebx + 0x78]
push eax
push ecx
mov ecx, esi
call fcn.0058085c
jmp 0x582072
xor eax, eax
push eax
mov ecx, edi
call fcn.005ccc2c
mov edx, dword [edi + 4]
mov ebp, dword [edx + 0x20]
mov al, byte [ebp + 0x129]
test al, al
jne 0x5820b2
mov eax, dword [esp + 0x4c4]
mov ecx, dword [esp + 0x4c0]
push eax
push ebx
push ecx
mov ecx, edi
call fcn.00581a9c
pop edi
pop esi
pop ebp
movzx eax, al
pop ebx
add esp, 0x4a8
ret 0x14
test byte [ebp + 0x368], 0x12
jne 0x5820ca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4a8
ret 0x14
mov eax, dword [ebp + 0x1bc]
test eax, eax
jle 0x582aa1
mov eax, dword [ebp + 0x1c0]
test eax, eax
jle 0x582aa1
mov ecx, ebp
call fcn.0057c38c
mov ecx, ebp
mov byte [esp + 0x1b], al
call fcn.00581cbc
mov ecx, dword [ebp + 0x12c]
test ecx, ecx
je 0x582aa1
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x582aa1
call fcn.006251ac
test eax, eax
je 0x582aa1
mov edx, dword [edi + 4]
mov edx, dword [edx + 4]
test edx, edx
je 0x582134
mov eax, dword [edi + 0x54]
test ah, 2
jne 0x582134
mov al, 1
jmp 0x582136
xor al, al
test al, al
mov byte [esp + 0x1a], al
mov byte [esp + 0x13], 1
je 0x582190
mov ecx, edx
call fcn.005815fc
test eax, eax
je 0x582190
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 0x368]
shr ecx, 2
test cl, 1
jne 0x58218b
mov edx, dword [ebp + 0x368]
shr edx, 2
test dl, 1
jne 0x58218b
mov cl, byte [eax + 0x129]
test cl, cl
je 0x582190
mov al, byte [ebp + 0x129]
test al, al
je 0x582190
mov byte [esp + 0x13], 0
jmp 0x582190
mov byte [esp + 0x13], 1
mov eax, dword [ebp + 0x154]
test eax, eax
jle 0x582608
lea ebx, [ebp + 0x10]
push ebx
mov ecx, edi
call fcn.005c618c
mov ecx, eax
call fcn.005af06c
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c0]
push eax
lea ecx, [esp + 0xe4]
call fcn.005cacec
lea ecx, [esp + 0xe0]
push ecx
mov edx, ecx
push edx
lea esi, [ebp + 0x330]
push esi
mov byte [esp + 0x11c], 0
call fcn.00575d0c
mov ecx, dword [esp + 0x4d8]
push ecx
lea edx, [esp + 0x384]
push edx
lea eax, [ebp + 0x34c]
push eax
push esi
push edi
call fcn.00581f7c
mov dword [esp + 0x4ec], eax
mov eax, dword [esp + 0x4e0]
push eax
call fcn.005768cc
add esp, 0x24
test eax, eax
je 0x5822b5
mov eax, dword [ebp + 0x368]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x58223b
shr eax, 2
test al, 1
je 0x5822b5
mov esi, dword [esp + 0x4c0]
mov ecx, 0x37
lea edi, [esp + 0x298]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
call fcn.005c618c
test eax, eax
je 0x58226e
mov ecx, dword [esp + 0x14]
call fcn.005c618c
mov eax, dword [eax + 0x3e0]
jmp 0x582270
xor eax, eax
push eax
lea edx, [esp + 0x6c]
push edx
lea eax, [ebp + 0x34c]
push eax
call fcn.005771bc
lea eax, [esp + 0x74]
push eax
mov ecx, eax
push ecx
lea eax, [ebp + 0x330]
push eax
call fcn.00575d0c
lea edx, [esp + 0x2b0]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.00575d0c
mov edi, dword [esp + 0x38]
add esp, 0x24
mov eax, dword [ebp + 0x388]
test eax, eax
jle 0x5822cb
lea ecx, [esp + 0xfc]
call fcn.005a335c
mov eax, dword [ebp + 0x154]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x5825d1
lea edx, [ebp + 0x168]
mov dword [esp + 0x20], edx
nop
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x4bc]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], edx
call fcn.005a39dc
mov ecx, dword [esi]
mov eax, dword [ebp + 0x12c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, ebx
call fcn.005a3ccc
mov ecx, dword [esi + 4]
mov dword [ebp + 0x14], ecx
mov ecx, ebx
call fcn.0059c53c
test byte [ebp + 0x368], 8
je 0x58237b
lea edx, [esp + 0xe0]
push edx
call fcn.005768cc
add esp, 4
test eax, eax
je 0x58237b
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x2a0]
push ecx
mov ecx, edi
call fcn.005819cc
test byte [ebp + 0x368], 4
jne 0x5823a4
mov eax, dword [ebp + 0x12c]
push 0
lea edx, [esp + 0x28]
push edx
push eax
mov byte [ebp + 0x27], 1
mov byte [ebp + 0x24], 1
call fcn.0057da4c
add esp, 0xc
jmp 0x5823f9
lea ecx, [esp + 0xe0]
push ecx
mov byte [ebp + 0x27], 0
call fcn.005768cc
add esp, 4
test eax, eax
push 0
je 0x5823e4
mov eax, dword [ebp + 0x12c]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0057da4c
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 1
push ecx
push ebx
lea edx, [esp + 0x2a4]
push edx
jmp 0x5823f2
mov eax, dword [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0xec]
push ecx
mov ecx, ebp
call fcn.0058176c
mov al, byte [esp + 0x1a]
test al, al
je 0x58251b
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
push 0
lea edx, [esp + 0x1c0]
push edx
push ecx
mov ecx, edi
call fcn.005c962c
mov edx, dword [edi + 4]
mov ecx, dword [edx + 4]
call fcn.005c533c
mov al, byte [esp + 0x13]
test al, al
je 0x5824d5
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
push edi
call fcn.005c59ec
test al, al
jne 0x5824a1
mov ecx, edi
call fcn.005c618c
test eax, eax
je 0x58245e
mov ecx, edi
call fcn.005c618c
mov eax, dword [eax + 0x3e0]
jmp 0x582460
xor eax, eax
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0057611c
mov edx, dword [ebp + 0x210]
mov eax, dword [ebp + 0x214]
neg edx
lea ecx, [esp + 0x1c4]
neg eax
mov dword [esp + 0x80], edx
push ecx
lea edx, [esp + 0x74]
mov dword [esp + 0x88], eax
push edx
mov eax, ecx
push eax
call fcn.00575d0c
add esp, 0x14
mov edx, dword [ebp + 0x12c]
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.0057da4c
mov edx, dword [edi + 4]
add esp, 0xc
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
mov ecx, edi
call fcn.005cfb0c
jmp 0x58251b
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
add edx, 0x2c
push edx
add eax, 0x30
push eax
lea ecx, [esp + 0x1c4]
call fcn.0057c33c
mov eax, dword [esp + 0x4cc]
mov ecx, dword [esp + 0x4c8]
push eax
push ecx
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c8]
push eax
push esi
call fcn.0058201c
mov eax, dword [ebp + 0x12c]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0062f94c
mov ecx, dword [esp + 0x4cc]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xec]
push ecx
push ebx
mov ecx, edi
call fcn.005cff9c
lea ecx, [esp + 0x48]
call fcn.006302cc
push ebx
lea ecx, [esp + 0xa8]
call fcn.0059a96c
push ebp
lea edx, [esp + 0xa8]
push edx
mov ecx, edi
call fcn.005c618c
mov ecx, eax
call fcn.005af74c
mov ecx, ebx
mov esi, eax
call fcn.005a8efc
push esi
lea eax, [esp + 0xa8]
push eax
mov ecx, edi
mov byte [ebp + 0x27], 0
call fcn.005c618c
mov ecx, eax
call fcn.005af95c
lea ecx, [esp + 0xa4]
call fcn.005a71fc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x154]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jl 0x5822ec
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, edi
call fcn.005c618c
mov ecx, eax
call fcn.005af06c
mov al, byte [esp + 0x13]
test al, al
jne 0x582608
mov al, byte [esp + 0x1a]
test al, al
je 0x582608
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x20]
push edx
mov ecx, ebp
call fcn.00580dcc
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.005c618c
mov ecx, eax
call fcn.005b070c
mov eax, dword [ebp + 0x388]
test eax, eax
jle 0x5829d4
mov ecx, dword [ebp + 0x3b4]
test ecx, ecx
je 0x5829d4
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5829d4
call fcn.006251ac
test eax, eax
je 0x5829d4
mov eax, dword [ebp + 0x32c]
and eax, 8
jne 0x582818
mov cl, byte [esp + 0x1b]
test cl, cl
jne 0x582818
mov ecx, dword [ebp + 0x154]
test ecx, ecx
je 0x582818
cmp dword [ebp + 0x388], 1
jne 0x582818
mov edx, dword [ebp + 0x1c0]
mov eax, dword [ebp + 0x1bc]
lea ecx, [esp + 0x68]
push ecx
push edx
push eax
push 0
push 0
call fcn.00574e2c
mov eax, dword [ebp + 0x154]
mov esi, dword [ebp + 0x380]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x5829c9
mov ebx, dword [esp + 0x4c0]
lea ecx, [ebp + 0x168]
add ebx, 0x1c
mov dword [esp + 0x20], ecx
jmp 0x5826dc
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4bc]
push edx
mov dword [esp + 0x40], eax
call fcn.005a39dc
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push ecx
push 1
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x6c]
push edx
mov edx, dword [ebp + 0x3b4]
lea ecx, [esp + 0x8c]
push ecx
push edx
mov edx, dword [ebp + 0x12c]
lea ecx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xc]
cmp dword [ebx], 0
je 0x5827f1
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov ecx, 0x64
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
push 1
lea ecx, [esp + 0x2c]
push ecx
mov eax, ecx
push eax
mov dword [esp + 0x60], edx
mov edx, dword [esi]
push ecx
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x48]
push edx
neg eax
push eax
neg ecx
push ecx
call fcn.00574efc
mov eax, dword [ebp + 0x3b4]
push ebx
lea edx, [esp + 0x58]
push edx
push eax
call fcn.005811dc
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x154]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jl 0x5826dc
jmp 0x5829c9
test eax, eax
jne 0x582832
mov eax, dword [ebp + 0x154]
test eax, eax
jne 0x582832
mov al, byte [esp + 0x1b]
test al, al
je 0x5829c9
mov edx, dword [ebp + 0x1c0]
mov eax, dword [ebp + 0x1bc]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
push 0
push 0
call fcn.00574e2c
mov ecx, dword [ebp + 0x12c]
mov eax, dword [ebp + 0x3bc]
lea edx, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x3b8]
push ecx
push 0
push 0
call fcn.00574e2c
mov esi, dword [ebp + 0x380]
add esp, 0x28
test esi, esi
mov dword [esp + 0x1c], 1
je 0x582984
mov edx, dword [esi]
lea eax, [esp + 0x94]
push eax
push 1
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x54]
mov ecx, eax
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov edx, eax
inc eax
mov dword [esp + 0x1c], eax
cmp edx, dword [ebp + 0x388]
jne 0x5828c6
mov ebx, dword [ebp + 0x3b4]
jmp 0x582916
push 0x40
call fcn.0071528c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x58290d
mov eax, dword [esp + 0x4bc]
mov ecx, dword [eax + 0x7c]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push 0
push 4
push 0
sub edx, eax
mov eax, dword [esp + 0x44]
push 8
push edx
sub eax, dword [esp + 0x48]
mov edx, dword [ecx]
push eax
call dword [edx + 0x3c]
push eax
mov ecx, ebx
call fcn.0062595c
mov ebx, eax
jmp 0x58290f
xor ebx, ebx
mov ecx, ebx
call fcn.006251ac
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push edx
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esp + 0x14]
cmp edx, dword [ebp + 0x12c]
je 0x58295c
mov eax, edx
test eax, eax
je 0x58295c
mov ecx, edx
call fcn.006259ac
mov eax, dword [esp + 0x14]
push eax
call fcn.007152ac
add esp, 4
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
push 0
push 0
mov dword [esp + 0x28], ebx
call fcn.00574e2c
mov esi, dword [esi + 4]
add esp, 0x14
test esi, esi
jne 0x58288d
mov esi, dword [esp + 0x4c0]
mov eax, dword [esi + 0x1c]
add esi, 0x1c
test eax, eax
je 0x5829c9
mov edx, dword [ebp + 0x3bc]
mov eax, dword [ebp + 0x3b8]
lea ecx, [esp + 0x68]
push ecx
push edx
push eax
push 0
push 0
call fcn.00574e2c
mov edx, dword [ebp + 0x3b4]
push esi
lea ecx, [esp + 0x80]
push ecx
push edx
call fcn.005811dc
add esp, 0x20
mov ecx, dword [ebp + 0x3b4]
call fcn.006251cc
lea eax, [ebp + 0x144]
push eax
call fcn.00574ebc
mov ecx, dword [ebp + 0x32c]
and ecx, 0xfffffff7
mov dword [ebp + 0x154], 0
mov dword [ebp + 0x32c], ecx
mov eax, dword [edi + 0x54]
add esp, 4
test ah, 2
jne 0x582a96
mov esi, dword [esp + 0x4c4]
mov ecx, dword [esi]
mov ebx, dword [esp + 0x4c0]
mov edx, dword [edi + 0x2c]
push ecx
push ebx
push edx
mov ecx, ebp
call fcn.0057de3c
test al, al
jne 0x582a3c
mov eax, dword [esp + 0x4bc]
push esi
push ebx
push eax
mov ecx, ebp
call fcn.00581cfc
jmp 0x582a96
mov esi, dword [esp + 0x4bc]
lea edi, [esi + 0x50]
lea ebx, [ebp + 0x3a4]
push edi
push ebx
call fcn.0057513c
add esp, 8
test eax, eax
je 0x582a96
mov ecx, dword [ebp + 0x368]
shr ecx, 2
test cl, 1
je 0x582a83
push edi
push ebx
call fcn.005751ac
add esp, 8
test eax, eax
je 0x582a83
mov ecx, esi
call fcn.0059c53c
mov byte [esi + 0x14], 1
jmp 0x582a8a
mov ecx, esi
call fcn.005a8efc
lea edx, [esi + 0x60]
push edx
push esi
mov ecx, ebp
call fcn.005810ec
mov ecx, dword [ebp + 0x12c]
call fcn.006251cc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4a8
ret 0x14