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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x585580
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x585d79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc0]
call fcn.004374f0
xor edx, edx
push ebp
push 0x585d42
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x5856b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0xb0], 0
je 0x5856b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0x3c], 0
jne 0x5856b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb0]
call fcn.00421c9c
test eax, eax
jle 0x585d23
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x585618
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb0]
call fcn.00421c9c
dec eax
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1c]
jl 0x5856a6
xor eax, eax
push ebp
push 0x58569f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb0]
call fcn.00585164
mov ebx, eax
mov al, byte [ebx + 0xc]
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x1d]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00585138
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
mov al, byte [ebp - 0x1d]
xor al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585d23
mov eax, dword [ebp - 4]
inc dword [eax + 0x1c]
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
jmp 0x585d23
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x58571a
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov esi, dword [ebx + 0x3c]
test esi, esi
je 0x5856dd
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00585414
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x585704
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409b70
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.005853fc
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov byte [eax + 0x18], 0
mov byte [eax + 0x1a], 0
mov byte [eax + 0x40], 1
mov byte [eax + 0x41], 1
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
call fcn.0040468c
lea eax, [ebp - 8]
call fcn.0040468c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov esi, 0xffffff95
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540f88
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540ff8
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00541014
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov byte [ebp - 0x26], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005863f0
test eax, eax
je 0x5857ea
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005863f0
mov al, byte [eax + 0x1f4]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005863e8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005863f0
mov byte [eax + 0x1f4], bl
xor eax, eax
push ebp
push 0x585d1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x534588]
call fcn.00403740
mov dword [ebp - 0x10], eax
cmp esi, 0xffffff95
je 0x58581f
cmp esi, 0xffffff94
je 0x58581f
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x18]
call fcn.00404724
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.0040468c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 2
jne 0x58584e
cmp esi, 0xffffff95
je 0x58584e
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 3
jne 0x5858ef
push ebp
call fcn.005854b8
pop ecx
test al, al
jne 0x585894
cmp esi, 0xffffff95
je 0x58587f
test esi, esi
je 0x58587f
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x18]
call fcn.00404980
jmp 0x5858ef
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
je 0x5858ef
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 4
jmp 0x5858ef
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 4
cmp dword [ebp - 0x1c], 0
jne 0x5858b1
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
call fcn.00404724
jmp 0x5858ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404978
dec eax
jle 0x5858ef
mov eax, dword [ebp - 0x1c]
call fcn.00404978
mov edx, dword [ebp - 0x1c]
mov al, byte [edx + eax - 1]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
cmp al, byte [edx]
jne 0x5858ef
mov eax, dword [ebp - 0x1c]
call fcn.00404978
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404c18
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 1
jne 0x585904
cmp esi, 0xffffff95
jne 0x585904
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 4
je 0x585923
test esi, esi
je 0x585923
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test al, al
jne 0x585923
xor ebx, ebx
jmp 0x585925
mov bl, 1
test bl, bl
jne 0x585a0c
cmp esi, 0xffffff96
je 0x585a0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0xac]
call fcn.00404ac4
jne 0x585a03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0xac]
call fcn.00404ac4
jne 0x58597b
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x20]
test al, al
je 0x58597f
xor ebx, ebx
jmp 0x585981
mov bl, 1
test bl, bl
jne 0x585a0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, 0x585d94
call fcn.00404ac4
jne 0x585a0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00541034
cmp edx, 0
jne 0x585a0c
cmp eax, 0
jne 0x585a0c
lea eax, [ebp - 0x18]
call fcn.0040468c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edi, eax
test edi, edi
je 0x5859f2
cmp edi, 0xffffff95
jne 0x5859f6
mov edx, dword [ebp - 0x18]
mov eax, 0x585da0
call fcn.00404cbc
test eax, eax
jg 0x5859f2
mov edx, dword [ebp - 0x18]
mov eax, 0x585dac
call fcn.00404cbc
test eax, eax
jle 0x5859f6
mov bl, 1
jmp 0x585a0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0053ff90
jmp 0x585a0c
push ebp
call fcn.005854b8
pop ecx
mov ebx, eax
test bl, bl
je 0x585bda
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00535680
test esi, esi
je 0x585af9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404978
dec eax
jle 0x585af9
mov eax, dword [ebp - 0x14]
call fcn.00404978
test eax, eax
jle 0x585af9
mov eax, dword [ebp - 0x14]
call fcn.00404978
mov edx, dword [ebp - 0x14]
mov al, byte [edx + eax - 1]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
cmp al, byte [edx]
jne 0x585af9
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404978
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404978
pop ecx
sub ecx, eax
inc ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404bd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404978
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
add eax, 1
adc edx, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404978
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
add eax, 1
adc edx, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.00409a64
cmp dword [ebp - 0x38], 0
jne 0x585b1c
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test al, al
je 0x585cc2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 4
sete al
or al, byte [ebp - 0x25]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 4
jne 0x585b43
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp - 0x1c]
call fcn.004046e0
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x1d]
push eax
push 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
mov al, byte [ebp - 0x25]
xor al, 1
and al, byte [ebp - 0x1d]
jne 0x585cca
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x585bd1
mov eax, ebx
call fcn.00540f88
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0xa0], eax
mov dword [ecx + 0xa4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540f88
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540ff8
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00541014
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov byte [ebp - 9], 1
jmp 0x585cca
lea eax, [ebp - 0x25]
push eax
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x18]
cmp esi, 0xffffff96
je 0x585bfe
cmp esi, 0xffffff95
jne 0x585bfe
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x585c5f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
call fcn.005355d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540f88
sub eax, 1
sbb edx, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540ff8
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00541014
sub eax, 1
sbb edx, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
jmp 0x585cc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404978
cdq
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
add dword [ecx + 0xa0], eax
adc dword [ecx + 0xa4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540ff8
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00540f88
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00541014
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
test esi, esi
jne 0x585807
cmp byte [ebp - 9], 0
jne 0x585ce3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00403770
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585d23
mov eax, dword [ebp - 0x10]
call fcn.00403770
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005863f0
test eax, eax
je 0x585d1b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005863f0
mov dl, byte [ebp - 0x26]
mov byte [eax + 0x1f4], dl
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585d49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc0]
call fcn.004374f8
ret