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

Disassembly:
mov eax, 0x20
call fcn.00609610
push ebx
mov ebx, dword [esp + 0x28]
mov al, byte [ebx + 0x8a]
test al, 1
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
mov ebp, 1
je 0x581ef9
test al, 2
je 0x581f06
mov edx, dword [ecx + 0x60]
test byte [edx + 9], 8
jne 0x581f11
test al, 4
je 0x581f11
mov esi, dword [esp + 0x40]
mov dword [esi + 0x10], ebx
xor edi, edi
jmp 0x581f1a
mov esi, dword [esp + 0x40]
xor edi, edi
mov dword [esi + 0x10], edi
cmp ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x14], edi
jne 0x581f40
test byte [ebx + 0x8b], 0x20
je 0x581f35
cmp dword [ebx + 0x3c], edi
jne 0x581f40
mov eax, dword [ecx + 0x78]
mov edx, dword [0x757628]
jmp 0x581fa2
cmp dword [esp + 0x48], 1
jne 0x581f82
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
cmp dword [eax + 0x30], 2
je 0x581f82
cmp dword [esp + 0x44], edi
je 0x581f70
cmp edx, 1
mov eax, dword [0x757630]
jne 0x581f68
xor ebp, ebp
mov edx, dword [0x75762c]
jmp 0x581fa2
cmp edx, 1
mov eax, dword [ecx + 0x78]
jne 0x581f7a
xor ebp, ebp
mov edx, dword [0x757628]
jmp 0x581fa2
test byte [ebx + 0x8a], 1
je 0x581f93
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x54]
jmp 0x581fa2
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + 0x34]
mov eax, dword [edx + 0x74]
mov edx, dword [ecx + 0x60]
mov edx, dword [edx + 0x74]
mov dword [ecx + 0x74], edx
cmp dword [esp + 0x58], edi
mov ecx, dword [esp + 0x38]
jne 0x581fc2
cmp ebp, 1
jne 0x581fcb
push eax
mov eax, dword [esp + 0x40]
push esi
push eax
call fcn.00517cf0
jmp 0x581fcb
cmp eax, dword [ecx + 0x48]
jne 0x5825d6
test byte [ebx + 0x8a], 1
je 0x58233a
test byte [ebx + 0x8b], 0x20
je 0x582216
mov eax, dword [esp + 0x44]
cmp ebx, eax
jne 0x581ff6
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x18], ecx
jmp 0x581ffa
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov ebp, 1
cmp eax, ebp
jne 0x58210a
mov edx, dword [ebx + 0x38]
mov esi, dword [edx]
test esi, esi
je 0x58233a
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x14], 0xffffffe4
mov dword [esp + 0x44], 0x1c
test byte [esi + 0x8a], 0x20
jne 0x5820f4
movsx edi, word [esi + 0x6a]
movsx edx, word [esi + 0x66]
sub edx, edi
test edx, edx
jle 0x5820f4
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, ebp
jle 0x582063
mov ecx, dword [esp + 0x50]
mov eax, ebx
mov ebx, dword [esp + 0x40]
movsx ebx, word [ebx + 0xe]
cmp ecx, ebx
jg 0x58207e
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
lea eax, [ecx + eax - 0x1c]
test eax, eax
jne 0x582095
movsx eax, word [esi + 0x6e]
movsx ecx, word [esi + 0x6c]
push eax
add ecx, edi
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ebp
call fcn.00535a70
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
push edi
push edx
mov edx, dword [esp + 0x50]
push 1
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x54]
push edx
push eax
push esi
call fcn.00581ed0
test edi, edi
jne 0x5820cd
and byte [esi + 8], 0xf7
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
mov eax, 0x1c
add edi, eax
inc ebp
dec edx
sub ecx, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], ecx
mov ecx, esi
call fcn.004ecf70
mov esi, eax
test esi, esi
jne 0x582030
jmp 0x58233a
mov ecx, dword [ebx + 0x38]
mov esi, dword [ecx + 4]
or ebp, 0xffffffff
test esi, esi
je 0x58233a
mov ebx, 0x1c
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], 0xffffffe4
jmp 0x582140
test byte [esi + 0x8a], 0x20
jne 0x5821fc
movsx edi, word [esi + 0x6a]
movsx edx, word [esi + 0x66]
sub edx, edi
test edx, edx
jle 0x5821fc
test ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, ebp
jle 0x58216f
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov ebx, dword [esp + 0x40]
movsx ebx, word [ebx + 0xe]
cmp ecx, ebx
jg 0x58218a
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
lea eax, [ecx + eax - 0x1c]
test eax, eax
jne 0x5821a1
movsx eax, word [esi + 0x6e]
movsx ecx, word [esi + 0x6c]
push eax
add ecx, edi
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ebp
call fcn.00535a70
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push edi
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push esi
call fcn.00581ed0
test edi, edi
jne 0x5821dc
and byte [esi + 8], 0xf7
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
sub edx, 0x1c
dec ebp
inc ecx
add ebx, 0x1c
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
mov ecx, esi
call fcn.004ecf40
mov esi, eax
test esi, esi
jne 0x582140
mov ebx, dword [esp + 0x34]
jmp 0x58233a
mov esi, dword [esp + 0x10]
test byte [esi + 0x58], 2
mov dword [esp + 0x4c], 0
jne 0x58223f
mov edx, dword [esi + 0x60]
test byte [edx + 9], 8
je 0x58223f
cmp ebx, dword [esp + 0x44]
jne 0x58223f
mov dword [esp + 0x4c], 1
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + 4]
push eax
push esi
call fcn.00504480
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edi
push ebp
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00592740
cmp edi, 1
je 0x5825d6
mov edx, dword [esi + 0x60]
test byte [edx + 9], 8
je 0x58233a
test ebp, ebp
mov esi, dword [ebx + 0x48]
je 0x58230b
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push eax
lea edi, [ebp + 0x7c]
push edi
call fcn.00516ec0
mov ecx, dword [esp + 0x38]
push edi
call fcn.00424380
test esi, esi
je 0x58233a
mov eax, dword [esi + 0x44]
test eax, eax
je 0x58230b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x58230b
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x58230b
mov al, byte [ebx + 0x8a]
test al, 0x22
jne 0x58230b
test al, 1
je 0x58230b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x582306
mov ecx, 0x20
call fcn.004dc5a0
test eax, eax
je 0x5822ff
mov ecx, dword [esi + 0x18]
push edi
push ecx
push ebp
mov ecx, eax
call fcn.0055e000
mov dword [esi + 0x1c], eax
jmp 0x58230b
xor eax, eax
mov dword [esi + 0x1c], eax
jmp 0x58230b
call fcn.005881b0
test esi, esi
je 0x58233a
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x58233a
mov eax, dword [esi + 0x44]
test eax, eax
je 0x582325
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x58233a
mov ecx, edi
call fcn.0055dff0
mov ecx, edi
call fcn.004dc710
mov dword [esi + 0x1c], 0
cmp dword [esp + 0x58], 1
je 0x5825d6
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x582567
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x5c]
push eax
movzx eax, word [ecx + 0x16]
lea ecx, [eax + eax*2]
push 0x3a
lea ecx, [ecx*4 + 0x676b60]
call fcn.00510f40
cmp word [esp + 0x4c], 0
je 0x5823b4
call fcn.005109a0
mov edx, dword [esp + 0x4c]
push 8
push ebx
push ebx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], eax
call fcn.005113e0
mov cl, byte [ebx + 0x8b]
and cl, 0x7f
shl al, 7
or al, cl
mov ecx, dword [esp + 0x44]
mov byte [ebx + 0x8b], al
call fcn.00510990
jmp 0x5823bb
or byte [ebx + 0x8b], 0x80
mov al, byte [ebx + 0x8b]
test al, al
jns 0x582567
mov edx, dword [ebx + 0x34]
mov eax, dword [edx + 0x34]
test byte [eax + 0x125], 0x40
jne 0x582410
test byte [ebx + 0x8a], 1
je 0x5825d6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 0x4c]
push 0
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x50]
call fcn.00518c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x28
mov edx, dword [eax + 0xc4]
mov al, byte [ebx + 0x8a]
mov ebp, dword [esp + 0x40]
or esi, 0xffffffff
or edi, 0xffffffff
test al, 1
mov dword [esp + 0x44], edx
je 0x58244b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x38]
push 1
push ecx
mov ecx, dword [esp + 0x44]
push ebp
push edx
push eax
call fcn.00518af0
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x8c], 1
je 0x58256b
mov ecx, dword [ebx + 0x4c]
movzx ax, byte [ecx + 2]
test ax, ax
je 0x582477
test al, 4
movsx esi, word [ebp]
jne 0x582477
movsx edx, word [ebp + 4]
sub esi, edx
movzx ax, byte [ecx + 3]
test ax, ax
je 0x582495
test al, 4
je 0x58248b
movsx edi, word [ebp + 2]
jmp 0x582495
movsx edi, word [ebp + 6]
movsx eax, word [ebp + 2]
add edi, eax
cmp esi, 0xffffffff
je 0x5824f7
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 4]
test eax, eax
je 0x5824c1
lea edx, [esi - 1]
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jl 0x5824ba
lea ebp, [esi + 1]
cmp ecx, ebp
mov ebp, dword [esp + 0x40]
jle 0x5824f7
mov eax, dword [eax + 4]
test eax, eax
jne 0x5824a8
push 0
push 0x18
mov ecx, 0x675d4c
call fcn.004e1e00
test eax, eax
je 0x5824eb
mov ecx, dword [ebx + 0x4c]
mov dword [eax], 0x636ebc
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 1
jmp 0x5824ed
xor eax, eax
mov ecx, dword [esp + 0x44]
push eax
call fcn.004e61c0
cmp edi, 0xffffffff
je 0x58256b
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
test eax, eax
je 0x582525
lea edx, [edi - 1]
lea ebx, [ebx]
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jl 0x58251e
lea esi, [edi + 1]
cmp ecx, esi
jle 0x58256b
mov eax, dword [eax + 4]
test eax, eax
jne 0x582510
push 0
push 0x18
mov ecx, 0x675d4c
call fcn.004e1e00
test eax, eax
je 0x582559
mov ecx, dword [ebx + 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x44]
push eax
mov dword [eax], 0x636ebc
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0
call fcn.004e61c0
jmp 0x58256b
mov ecx, dword [esp + 0x44]
xor eax, eax
push eax
call fcn.004e61c0
jmp 0x58256b
mov ebp, dword [esp + 0x40]
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x88], 2
jne 0x5825d6
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x8c], 1
je 0x5825d6
mov edx, dword [ebx + 0x34]
mov eax, dword [edx + 0x34]
test byte [eax + 0x125], 0x40
je 0x5825d6
push ebp
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00581e80
push 1
push 0x1c
mov ecx, 0x675d40
call fcn.004e1e00
test eax, eax
je 0x5825c2
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.0057c250
jmp 0x5825c4
xor eax, eax
push eax
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 0x34]
mov ecx, dword [ecx + 0xc8]
call fcn.004e61c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x28