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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x579106
sub esp, 0x64
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5789cd
lea eax, [0x687fa0]
mov dword [esp], eax
call fcn.0040af90
mov edi, dword [esp + 4]
mov eax, dword [0xa43e50]
test eax, eax
jne 0x5787cc
mov eax, dword [esp + 0x68]
mov dword [edi], eax
jmp 0x5787d5
mov eax, dword [esp + 0x68]
call fcn.0045f670
mov dword [esp + 0x58], edi
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x578819
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x5787ef
xor edx, edx
xor ebp, ebp
jmp 0x578840
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x58]
mov edx, ecx
mov ebp, eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
jmp 0x578840
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
call eax
mov ebp, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], edx
mov esi, dword [eax + 0x140]
mov ecx, dword [eax + 0x144]
cmp ecx, 4
jne 0x578863
cmp dword [esi], 0x78696e75
je 0x5788b7
jmp 0x5788dc
cmp ecx, 8
jne 0x57887b
cmp dword [esi], 0x78696e75
jne 0x5788dc
cmp dword [esi + 4], 0x6d617267
je 0x5788b7
jmp 0x5788dc
cmp ecx, 0xa
jne 0x5788dc
mov dword [esp], esi
lea eax, [0x6b8b0c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.00402870
movzx eax, byte [esp + 0xc]
test al, al
je 0x5788c8
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ecx, dword [eax + 0x140]
mov esi, dword [eax + 0x144]
jmp 0x57897a
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ecx, dword [eax + 0x140]
mov esi, dword [eax + 0x144]
movzx ebx, byte [esi + ecx - 1]
cmp bl, 0x34
je 0x57897a
cmp bl, 0x36
je 0x57897a
cmp dword [eax + 0x134], 2
jne 0x578940
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
lea eax, [0x8936a4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.0044afd0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
jmp 0x57897a
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
lea eax, [0x894928]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.0044afd0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
mov ebx, dword [eax]
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
lea ecx, [0x8964c8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x84]
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x5790f4
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x5789db
xor ebp, ebp
xor esi, esi
jmp 0x578a54
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x5790e2
test ebp, ebp
je 0x578a54
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.0046c380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x579077
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x578b1a
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ebp
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edx, edx
jne 0x578b08
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.0056a910
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x578af6
mov eax, dword [esp + 0x68]
mov byte [eax + 0x13c], 1
jmp 0x578b42
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebp
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.0056a800
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x579065
mov eax, dword [esp + 0x68]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], ebx
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046c460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x578d1b
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx + 0x134]
cmp ebp, 1
jne 0x578ba5
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x578b8b
lea ebp, [0x841ca0]
jmp 0x578be2
cmp ebp, 2
jne 0x578b98
lea ebp, [0x841c98]
jmp 0x578be2
cmp ebp, 5
jne 0x578bdc
lea ebp, [0x841c9c]
jmp 0x578be2
cmp ebp, 2
je 0x578baf
cmp ebp, 0x17
jne 0x578bdc
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x578bc2
lea ebp, [0x841c90]
jmp 0x578be2
cmp ebp, 2
jne 0x578bcf
lea ebp, [0x841c94]
jmp 0x578be2
cmp ebp, 3
jne 0x578bdc
lea ebp, [0x841c8c]
jmp 0x578be2
lea ebp, [0x841c3c]
mov ebx, dword [ebp]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, ebp
call ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x60], ebp
cmp ecx, 1
jne 0x578c3c
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x578c22
lea ecx, [0x841ca0]
jmp 0x578c79
cmp ecx, 2
jne 0x578c2f
lea ecx, [0x841c98]
jmp 0x578c79
cmp ecx, 5
jne 0x578c73
lea ecx, [0x841c9c]
jmp 0x578c79
cmp ecx, 2
je 0x578c46
cmp ecx, 0x17
jne 0x578c73
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x578c59
lea ecx, [0x841c90]
jmp 0x578c79
cmp ecx, 2
jne 0x578c66
lea ecx, [0x841c94]
jmp 0x578c79
cmp ecx, 3
jne 0x578c73
lea ecx, [0x841c8c]
jmp 0x578c79
lea ecx, [0x841c40]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0xa43e50]
test ebx, ebx
jne 0x578cba
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x14c], edx
jmp 0x578ccd
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x48]
call fcn.0045f670
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x578ce5
mov dword [ebp + 0x154], eax
jmp 0x578cf0
lea edi, [ebp + 0x154]
call fcn.0045f670
lea eax, [0x6b0f40]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x67aea0]
mov dword [esp + 8], eax
lea eax, [0x841c38]
mov dword [esp + 0xc], eax
call fcn.00414630
jmp 0x57904b
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046c540
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test edx, edx
je 0x578f05
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx + 0x134]
cmp ebp, 1
jne 0x578d8a
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x578d70
lea edx, [0x841ca0]
jmp 0x578dc7
cmp ebp, 2
jne 0x578d7d
lea edx, [0x841c98]
jmp 0x578dc7
cmp ebp, 5
jne 0x578dc1
lea edx, [0x841c9c]
jmp 0x578dc7
cmp ebp, 2
je 0x578d94
cmp ebp, 0x17
jne 0x578dc1
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x578da7
lea edx, [0x841c90]
jmp 0x578dc7
cmp ebp, 2
jne 0x578db4
lea edx, [0x841c94]
jmp 0x578dc7
cmp ebp, 3
jne 0x578dc1
lea edx, [0x841c8c]
jmp 0x578dc7
lea edx, [0x841c44]
mov eax, dword [edx]
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x60], ebp
cmp ecx, 1
jne 0x578e26
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x578e0c
lea ecx, [0x841ca0]
jmp 0x578e63
cmp ecx, 2
jne 0x578e19
lea ecx, [0x841c98]
jmp 0x578e63
cmp ecx, 5
jne 0x578e5d
lea ecx, [0x841c9c]
jmp 0x578e63
cmp ecx, 2
je 0x578e30
cmp ecx, 0x17
jne 0x578e5d
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x578e43
lea ecx, [0x841c90]
jmp 0x578e63
cmp ecx, 2
jne 0x578e50
lea ecx, [0x841c94]
jmp 0x578e63
cmp ecx, 3
jne 0x578e5d
lea ecx, [0x841c8c]
jmp 0x578e63
lea ecx, [0x841c48]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0xa43e50]
test ebx, ebx
jne 0x578ea4
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x14c], edx
jmp 0x578eb7
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x44]
call fcn.0045f670
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x578ecf
mov dword [ebp + 0x154], eax
jmp 0x578eda
lea edi, [ebp + 0x154]
call fcn.0045f670
lea eax, [0x6b0f40]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x67aea0]
mov dword [esp + 8], eax
lea eax, [0x841c38]
mov dword [esp + 0xc], eax
call fcn.00414630
jmp 0x57904b
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
cmp ecx, 1
jne 0x578f41
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x578f27
lea ecx, [0x841ca0]
jmp 0x578f7e
cmp ecx, 2
jne 0x578f34
lea ecx, [0x841c98]
jmp 0x578f7e
cmp ecx, 5
jne 0x578f78
lea ecx, [0x841c9c]
jmp 0x578f7e
cmp ecx, 2
je 0x578f4b
cmp ecx, 0x17
jne 0x578f78
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x578f5e
lea ecx, [0x841c90]
jmp 0x578f7e
cmp ecx, 2
jne 0x578f6b
lea ecx, [0x841c94]
jmp 0x578f7e
cmp ecx, 3
jne 0x578f78
lea ecx, [0x841c8c]
jmp 0x578f7e
lea ecx, [0x841c4c]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], ecx
lea ebx, [0x6894e0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
call fcn.00408a70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
mov dword [ebx + 0x148], ecx
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x578fe1
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x14c], ecx
jmp 0x578ff4
lea edi, [ebx + 0x14c]
mov ecx, eax
mov eax, dword [esp + 0x40]
call fcn.0045f670
mov eax, ecx
mov dword [ebx + 0x150], eax
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x579013
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x154], eax
jmp 0x579025
lea edi, [ebx + 0x154]
mov eax, dword [esp + 0x80]
call fcn.0045f670
lea eax, [0x6b0f40]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x67aea0]
mov dword [esp + 8], eax
lea eax, [0x841c38]
mov dword [esp + 0xc], eax
call fcn.00414630
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edx
lea eax, [0x68f0c0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x6b715a]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x5790ba
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
jmp 0x5790ca
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045f670
mov eax, ecx
lea ecx, [0x895610]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x64
ret
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
call fcn.0045e260
jmp fcn.00578780