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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x586290
sub esp, 0x68
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x585c70
movzx ecx, byte [eax + 0x4c]
test cl, cl
je 0x58623e
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
xor ebx, ebx
xor ebp, ebp
jmp 0x585c81
inc ebx
lea ebp, [ebp + esi + 1]
cmp ebx, ecx
jge 0x585ce9
lea esi, [edx + ebx*8]
mov esi, dword [esi + 4]
test esi, esi
je 0x585c97
cmp esi, 0xff
jle 0x585c7c
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x585cdc
lea eax, [0x79ef9e]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x7fe200]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
lea eax, [0x79ef9e]
call fcn.0044c9e0
jmp 0x585cc2
cmp ebp, 0xffff
jg 0x5861ec
movzx ecx, word [eax + 0x8a]
test cx, cx
jne 0x585d06
mov ecx, 0x303
mov word [esp + 0x20], cx
lea eax, [0x731080]
mov dword [esp], eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], 0x20
call fcn.00438a70
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x40]
mov esi, dword [ebx + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0058a6d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x94]
mov ebp, dword [edx + 0x90]
mov esi, dword [edx + 0x8c]
test ebp, ebp
jne 0x585d93
mov ebx, dword [0xa759a0]
mov ebp, dword [0xa7599c]
mov esi, dword [0xa75998]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x64], esi
mov eax, dword [edx + 0x34]
mov dword [esp + 0x40], eax
lea ecx, [0x77d3c0]
mov dword [esp], ecx
call fcn.00409d00
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
movzx ecx, word [esp + 0x20]
mov word [eax + 0xc], cx
lea ecx, [0x721880]
mov dword [esp], ecx
call fcn.00409d00
mov eax, dword [esp + 4]
movzx ecx, byte [0x7fbd86]
mov byte [eax], cl
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x38], 1
mov dword [ecx + 0x3c], 1
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x5861df
mov dword [ecx + 0x34], eax
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x18], edx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x5861ce
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0x10], edx
mov word [ecx + 0x4c], 0x101
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x48], edx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x5861bd
mov edx, dword [esp + 0x58]
mov dword [ecx + 0x44], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x54], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x58], edx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x5861ac
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x50], eax
lea eax, [0x721880]
mov dword [esp], eax
call fcn.00409d00
mov eax, dword [esp + 4]
movzx ecx, byte [0x7fbd87]
mov byte [eax], cl
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x60], 1
mov dword [ecx + 0x64], 1
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x58619f
mov dword [ecx + 0x5c], eax
mov edx, dword [esp + 0x40]
test edx, edx
setg dl
mov byte [ecx + 0x40], dl
mov byte [ecx + 0x90], 1
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x38]
mov ebp, dword [edx + 0x34]
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x98], ebp
mov dword [ecx + 0x9c], ebx
mov ebx, dword [0xa8f2d0]
test ebx, ebx
jne 0x58618f
mov dword [ecx + 0x94], eax
mov dword [esp], edx
call fcn.0057fbb0
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x50], ecx
lea edx, [0x730fc0]
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.00438a70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov eax, dword [0xa8f2d0]
lea edi, [ebx + 0x28]
test eax, eax
jne 0x586183
mov dword [ebx + 0x28], ecx
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
xor edx, edx
jmp 0x585fbc
inc eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
cmp eax, esi
jge 0x585fa5
mov ecx, dword [edi + eax*4]
movzx edx, word [ecx]
cmp dx, bp
jne 0x585f51
movzx edx, word [ebx + 0xc]
cmp dx, 0x303
jae 0x585f8b
mov ecx, dword [ecx + 0x14]
test ecx, 4
jne 0x585f51
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
mov edx, dword [ebx + 0x28]
mov esi, dword [ebx + 0x30]
cmp ecx, esi
jg 0x585feb
lea ecx, [eax + 1]
mov dword [ebx + 0x2c], ecx
mov word [edx + eax*2], bp
mov ebp, dword [esp + 0x3c]
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov eax, ebp
mov ecx, esi
mov edi, dword [esp + 0x60]
cmp edx, ecx
jge 0x586047
mov dword [esp + 0x3c], edx
movzx ebp, word [eax + edx*2]
mov esi, dword [0xa7597c]
mov edi, dword [0xa75978]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
jmp 0x585f62
mov word [esp + 0x22], bp
lea ebx, [0x730fc0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.00438b40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x30], edx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x58603c
mov dword [ebx + 0x28], eax
movzx ebp, word [esp + 0x22]
mov edx, eax
mov eax, ecx
jmp 0x585f9b
mov edi, dword [esp + 0x60]
call fcn.0044c9e0
jmp 0x58602e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
je 0x586172
mov edx, dword [ebx + 0x14]
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebx + 0x18]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0045faa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5860de
mov ecx, dword [esp + 0x54]
movzx edx, word [ecx + 0xc]
cmp dx, 0x303
jb 0x5860bc
mov eax, dword [0xa759d8]
mov edx, dword [0xa759dc]
mov ebx, dword [0xa759e0]
mov dword [ecx + 0x7c], edx
mov dword [ecx + 0x80], ebx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x5860d4
mov dword [ecx + 0x78], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
lea edi, [ecx + 0x78]
call fcn.0044c9e0
jmp 0x5860bc
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x79de68]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0043bce0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
lea edx, [0x7436e0]
mov dword [esp], edx
call fcn.00409d00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x586167
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x7fe200]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
mov eax, dword [esp + 0x4c]
call fcn.0044c9e0
jmp 0x58614d
mov ecx, dword [0xa7ce8c]
mov eax, dword [0xa7ce88]
jmp 0x586058
mov eax, ecx
call fcn.0044c9e0
jmp 0x585f41
lea edi, [ecx + 0x94]
call fcn.0044c9e0
jmp 0x585ee9
lea edi, [ecx + 0x5c]
call fcn.0044c9e0
jmp 0x585ea9
lea edi, [ecx + 0x50]
mov eax, dword [esp + 0x64]
call fcn.0044c9e0
jmp 0x585e6b
lea edi, [ecx + 0x44]
mov eax, dword [esp + 0x58]
call fcn.0044c9e0
jmp 0x585e48
lea edi, [ecx + 0x10]
mov eax, dword [esp + 0x5c]
call fcn.0044c9e0
jmp 0x585e26
lea edi, [ecx + 0x34]
call fcn.0044c9e0
jmp 0x585e03
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x20
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x586231
lea eax, [0x7a054a]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x7fe200]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
lea eax, [0x7a054a]
call fcn.0044c9e0
jmp 0x586217
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x50
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x586283
lea eax, [0x7aa643]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x7fe200]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
lea eax, [0x7aa643]
call fcn.0044c9e0
jmp 0x586269
call fcn.0044b280
jmp fcn.00585c40