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

Disassembly:
push 0xffffffffffffffff
push 0x7c72a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov ebp, dword [0x9eba88]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x10], ebp
jne 0x5850d8
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.00404e60
jmp 0x585793
xor edi, edi
mov esi, 0x9e6144
mov eax, dword [esi]
cmp eax, ebx
jne 0x5850ea
mov eax, 0x7e5658
push eax
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x58513a
add esi, 0x10
inc edi
cmp esi, 0x9e61d4
jl 0x5850df
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x6c], 0xffffffff
cmp ecx, ebx
je 0x585793
mov al, byte [ecx - 1]
cmp al, bl
je 0x585789
cmp al, 0xff
je 0x585789
dec al
mov byte [ecx - 1], al
jmp 0x585793
cmp edi, 8
ja case.default.0x585143
jmp dword [edi*4 + 0x5857a8]
mov ecx, dword [0x9ea1d4]
mov eax, dword [ecx + 0x54c]
cmp eax, 1
je 0x585164
cmp eax, 2
jne 0x585735
mov ecx, dword [ecx + 0x494]
push ecx
mov ecx, ebp
call fcn.006a48e0
jmp 0x585735
mov dl, byte [esp + 0x88]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00404e60
mov eax, dword [0x9ea1d4]
mov byte [esp + 0x6c], 1
mov eax, dword [eax + 0x54c]
cmp eax, 1
jne 0x58522e
lea ecx, [esp + 0x14]
push ecx
push 0x1e0f
call fcn.00709cc0
mov dl, byte [esp + 0x90]
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
push ebx
call fcn.00404e60
mov edi, 0x870c08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x870c08
lea ecx, [esp + 0x3c]
call fcn.00404eb0
push ebx
push 0x25
lea eax, [esp + 0x1c]
push 4
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
mov byte [esp + 0x84], 2
call fcn.00763d10
add esp, 0x18
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 2
call fcn.00404e60
mov byte [esp + 0x6c], 1
push 1
lea ecx, [esp + 0x38]
jmp 0x5852e0
cmp eax, ebx
je 0x5852e5
lea eax, [esp + 0x14]
push eax
push 0x1e0e
call fcn.00709cc0
mov cl, byte [esp + 0x90]
add esp, 8
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
push ebx
call fcn.00404e60
mov edi, 0x870c08
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00401b40
test al, al
je 0x5852a1
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00405070
push ebx
push 0x25
lea eax, [esp + 0x1c]
push 4
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov byte [esp + 0x84], 4
call fcn.00763d10
add esp, 0x18
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 4
call fcn.00404e60
mov byte [esp + 0x6c], 1
push 1
lea ecx, [esp + 0x28]
call fcn.00404e60
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00404e60
jmp 0x585735
mov eax, dword [0x9ea1d4]
cmp dword [eax + 0x54c], 1
jne 0x585735
mov cl, byte [esp + 0x88]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.00404e60
mov esi, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401b40
test al, al
je 0x585363
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00405070
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x70], 6
call fcn.006a4910
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00404e60
jmp 0x585735
mov ecx, dword [0x9ea1d4]
cmp dword [ecx + 0x54c], 1
jne 0x585735
mov dl, byte [esp + 0x88]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00404e60
mov esi, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401b40
test al, al
je 0x5853f5
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00405070
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 7
push ecx
mov ecx, dword [esp + 0x14]
call fcn.006a49a0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00404e60
jmp 0x585735
mov edx, dword [0x9ea1d4]
cmp dword [edx + 0x54c], 0x64
jne 0x585735
cmp dword [esp + 0x7c], 7
jb 0x585735
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x14]
push eax
push 6
push ecx
lea ecx, [esp + 0x80]
call fcn.0040b2a0
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push 0xd
mov byte [esp + 0x74], 8
call fcn.006a39d0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00404e60
jmp 0x585735
mov ecx, ebp
call fcn.006c6a20
jmp 0x585735
mov ecx, ebp
call fcn.006c6ab0
jmp 0x585735
cmp dword [esp + 0x7c], 7
jb 0x585735
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x14]
push eax
push 6
push ecx
lea ecx, [esp + 0x80]
call fcn.0040b2a0
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push 6
mov byte [esp + 0x74], 9
call fcn.006a39d0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00404e60
jmp 0x585735
mov edx, dword [0x9ea1d4]
mov eax, dword [edx + 0x860]
cmp eax, 1
je 0x5856b4
cmp eax, 2
je 0x5856b4
cmp dword [edx + 0x54c], 1
je 0x5855bd
mov al, byte [esp + 0x88]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x14], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 0xb
push ecx
push 0x2ace
call fcn.00709cc0
add esp, 8
lea edx, [esp + 0x14]
mov ecx, ebp
push 0xffffff00
push edx
call fcn.006b8210
mov eax, dword [esp + 0x18]
mov byte [esp + 0x6c], bl
cmp eax, ebx
je 0x585570
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x585567
cmp al, 0xff
je 0x585567
dec al
mov byte [ecx], al
jmp 0x585570
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
mov dword [esp + 0x6c], 0xffffffff
je 0x585774
mov al, byte [ecx - 1]
cmp al, bl
je 0x58576a
cmp al, 0xff
je 0x58576a
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov esi, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x585671
mov esi, dword [0x9ea1d0]
cmp esi, ebx
je 0x585735
mov eax, dword [edx + 0x494]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x84]
push ecx
push edx
lea ecx, [esi + 0x38]
mov dword [esp + 0x90], eax
call fcn.00482da0
mov esi, dword [esi + 0x3c]
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x585735
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x310], 5
je 0x585735
cmp ecx, ebx
je 0x585735
call fcn.0054a0b0
mov dl, byte [eax]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x98], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x7e565c]
push edx
push ebx
push eax
call fcn.00404c60
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.006ce270
jmp 0x585735
sub esp, 0x10
mov edi, esi
mov dword [esp + 0x98], esp
mov al, byte [esp + 0x98]
mov edx, esp
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, edx
call fcn.00404eb0
mov ecx, ebp
mov byte [esp + 0x7c], bl
call fcn.006ce270
jmp 0x585735
mov cl, byte [esp + 0x88]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.00404e60
lea edx, [esp + 0x14]
mov byte [esp + 0x6c], 0xa
push edx
push 0x2acf
call fcn.00709cc0
mov ecx, dword [0x9eba88]
add esp, 8
lea eax, [esp + 0x14]
push 0xffffff00
push eax
call fcn.006b8210
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00404e60
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.00404e60
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp edi, 0xffffffff
je 0x585109
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x6c], 0xffffffff
cmp ecx, ebx
je 0x585774
mov al, byte [ecx - 1]
cmp al, bl
je 0x58576a
cmp al, 0xff
je 0x58576a
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret