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

Disassembly:
mov eax, 0x20
call fcn.005e6090
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 0x581e99
test al, 2
je 0x581ea6
mov edx, dword [ecx + 0x60]
test byte [edx + 9], 8
jne 0x581eb1
test al, 4
je 0x581eb1
mov esi, dword [esp + 0x40]
mov dword [esi + 0x10], ebx
xor edi, edi
jmp 0x581eba
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 0x581ee0
test byte [ebx + 0x8b], 0x20
je 0x581ed5
cmp dword [ebx + 0x3c], edi
jne 0x581ee0
mov eax, dword [ecx + 0x78]
mov edx, dword [0x71cf28]
jmp 0x581f42
cmp dword [esp + 0x48], 1
jne 0x581f22
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
cmp dword [eax + 0x30], 2
je 0x581f22
cmp dword [esp + 0x44], edi
je 0x581f10
cmp edx, 1
mov eax, dword [0x71cf30]
jne 0x581f08
xor ebp, ebp
mov edx, dword [0x71cf2c]
jmp 0x581f42
cmp edx, 1
mov eax, dword [ecx + 0x78]
jne 0x581f1a
xor ebp, ebp
mov edx, dword [0x71cf28]
jmp 0x581f42
test byte [ebx + 0x8a], 1
je 0x581f33
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x54]
jmp 0x581f42
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 0x581f62
cmp ebp, 1
jne 0x581f6b
push eax
mov eax, dword [esp + 0x40]
push esi
push eax
call fcn.00517cd0
jmp 0x581f6b
cmp eax, dword [ecx + 0x48]
jne 0x582576
test byte [ebx + 0x8a], 1
je 0x5822da
test byte [ebx + 0x8b], 0x20
je 0x5821b6
mov eax, dword [esp + 0x44]
cmp ebx, eax
jne 0x581f96
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x18], ecx
jmp 0x581f9a
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov ebp, 1
cmp eax, ebp
jne 0x5820aa
mov edx, dword [ebx + 0x38]
mov esi, dword [edx]
test esi, esi
je 0x5822da
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x14], 0xffffffe4
mov dword [esp + 0x44], 0x1c
test byte [esi + 0x8a], 0x20
jne 0x582094
movsx edi, word [esi + 0x6a]
movsx edx, word [esi + 0x66]
sub edx, edi
test edx, edx
jle 0x582094
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, ebp
jle 0x582003
mov ecx, dword [esp + 0x50]
mov eax, ebx
mov ebx, dword [esp + 0x40]
movsx ebx, word [ebx + 0xe]
cmp ecx, ebx
jg 0x58201e
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
lea eax, [ecx + eax - 0x1c]
test eax, eax
jne 0x582035
movsx ecx, word [esi + 0x6c]
movsx eax, word [esi + 0x6e]
push eax
add edi, ecx
mov ecx, dword [esp + 0x44]
push edi
push edx
push ebp
call fcn.00535a60
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.00581e70
test edi, edi
jne 0x58206d
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.004ecf40
mov esi, eax
test esi, esi
jne 0x581fd0
jmp 0x5822da
mov ecx, dword [ebx + 0x38]
mov esi, dword [ecx + 4]
or ebp, 0xffffffff
test esi, esi
je 0x5822da
mov ebx, 0x1c
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], 0xffffffe4
jmp 0x5820e0
test byte [esi + 0x8a], 0x20
jne 0x58219c
movsx edi, word [esi + 0x6a]
movsx edx, word [esi + 0x66]
sub edx, edi
test edx, edx
jle 0x58219c
test ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, ebp
jle 0x58210f
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov ebx, dword [esp + 0x40]
movsx ebx, word [ebx + 0xe]
cmp ecx, ebx
jg 0x58212a
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
lea eax, [ecx + eax - 0x1c]
test eax, eax
jne 0x582141
movsx ecx, word [esi + 0x6c]
movsx eax, word [esi + 0x6e]
push eax
add edi, ecx
mov ecx, dword [esp + 0x44]
push edi
push edx
push ebp
call fcn.00535a60
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.00581e70
test edi, edi
jne 0x58217c
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.004ecf10
mov esi, eax
test esi, esi
jne 0x5820e0
mov ebx, dword [esp + 0x34]
jmp 0x5822da
mov esi, dword [esp + 0x10]
test byte [esi + 0x58], 2
mov dword [esp + 0x4c], 0
jne 0x5821df
mov edx, dword [esi + 0x60]
test byte [edx + 9], 8
je 0x5821df
cmp ebx, dword [esp + 0x44]
jne 0x5821df
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.005043f0
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.00592700
cmp edi, 1
je 0x582576
mov edx, dword [esi + 0x60]
test byte [edx + 9], 8
je 0x5822da
test ebp, ebp
mov esi, dword [ebx + 0x48]
je 0x5822ab
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.00516ea0
mov ecx, dword [esp + 0x38]
push edi
call fcn.004242d0
test esi, esi
je 0x5822da
mov eax, dword [esi + 0x44]
test eax, eax
je 0x5822ab
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5822ab
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x5822ab
mov al, byte [ebx + 0x8a]
test al, 0x22
jne 0x5822ab
test al, 1
je 0x5822ab
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x5822a6
mov ecx, 0x20
call fcn.004dc530
test eax, eax
je 0x58229f
mov ecx, dword [esi + 0x18]
push edi
push ecx
push ebp
mov ecx, eax
call fcn.0055df70
mov dword [esi + 0x1c], eax
jmp 0x5822ab
xor eax, eax
mov dword [esi + 0x1c], eax
jmp 0x5822ab
call fcn.00588170
test esi, esi
je 0x5822da
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x5822da
mov eax, dword [esi + 0x44]
test eax, eax
je 0x5822c5
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x5822da
mov ecx, edi
call fcn.0055df60
mov ecx, edi
call fcn.004dc6a0
mov dword [esi + 0x1c], 0
cmp dword [esp + 0x58], 1
je 0x582576
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x582507
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 + 0x63c460]
call fcn.00510f20
cmp word [esp + 0x4c], 0
je 0x582354
call fcn.00510980
mov edx, dword [esp + 0x4c]
push 8
push ebx
push ebx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], eax
call fcn.005113c0
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.00510970
jmp 0x58235b
or byte [ebx + 0x8b], 0x80
mov al, byte [ebx + 0x8b]
test al, al
jns 0x582507
mov edx, dword [ebx + 0x34]
mov eax, dword [edx + 0x34]
test byte [eax + 0x125], 0x40
jne 0x5823b0
test byte [ebx + 0x8a], 1
je 0x582576
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.00518c70
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 0x5823eb
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.00518ad0
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x8c], 1
je 0x58250b
mov ecx, dword [ebx + 0x4c]
movzx ax, byte [ecx + 2]
test ax, ax
je 0x582417
test al, 4
movsx esi, word [ebp]
jne 0x582417
movsx edx, word [ebp + 4]
sub esi, edx
movzx ax, byte [ecx + 3]
test ax, ax
je 0x582435
test al, 4
je 0x58242b
movsx edi, word [ebp + 2]
jmp 0x582435
movsx edi, word [ebp + 6]
movsx eax, word [ebp + 2]
add edi, eax
cmp esi, 0xffffffff
je 0x582497
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 4]
test eax, eax
je 0x582461
lea edx, [esi - 1]
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jl 0x58245a
lea ebp, [esi + 1]
cmp ecx, ebp
mov ebp, dword [esp + 0x40]
jle 0x582497
mov eax, dword [eax + 4]
test eax, eax
jne 0x582448
push 0
push 0x18
mov ecx, 0x63b64c
call fcn.004e1dd0
test eax, eax
je 0x58248b
mov ecx, dword [ebx + 0x4c]
mov dword [eax], 0x612e8c
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 1
jmp 0x58248d
xor eax, eax
mov ecx, dword [esp + 0x44]
push eax
call fcn.004e6190
cmp edi, 0xffffffff
je 0x58250b
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
test eax, eax
je 0x5824c5
lea edx, [edi - 1]
lea ebx, [ebx]
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jl 0x5824be
lea esi, [edi + 1]
cmp ecx, esi
jle 0x58250b
mov eax, dword [eax + 4]
test eax, eax
jne 0x5824b0
push 0
push 0x18
mov ecx, 0x63b64c
call fcn.004e1dd0
test eax, eax
je 0x5824f9
mov ecx, dword [ebx + 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x44]
push eax
mov dword [eax], 0x612e8c
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0
call fcn.004e6190
jmp 0x58250b
mov ecx, dword [esp + 0x44]
xor eax, eax
push eax
call fcn.004e6190
jmp 0x58250b
mov ebp, dword [esp + 0x40]
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x88], 2
jne 0x582576
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x8c], 1
je 0x582576
mov edx, dword [ebx + 0x34]
mov eax, dword [edx + 0x34]
test byte [eax + 0x125], 0x40
je 0x582576
push ebp
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00581e20
push 1
push 0x1c
mov ecx, 0x63b640
call fcn.004e1dd0
test eax, eax
je 0x582562
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.0057c1b0
jmp 0x582564
xor eax, eax
push eax
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 0x34]
mov ecx, dword [ecx + 0xc8]
call fcn.004e6190
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x28