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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov ecx, dword [0x6d6f40]
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xac]
xor ecx, esp
test eax, eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
je 0x587036
xor ecx, ecx
movzx edx, word [edi + ecx*2]
inc ecx
inc word [esp + edx*2 + 0x70]
cmp ecx, eax
jne 0x586944
movzx ecx, word [esp + 0x8e]
mov edx, dword [esi]
mov ebp, 0xf
test cx, cx
jne 0x58697c
cmp word [esp + 0x8c], 0
je 0x586f0f
mov ebp, 0xe
xor ecx, ecx
cmp edx, ebp
mov ebx, 1
mov dword [esp], ecx
cmova edx, ebp
cmp word [esp + ebx*2 + 0x70], 0
jne 0x586996
inc ebx
cmp ebx, ebp
jb 0x586989
movzx edi, word [esp + 0x72]
cmp edx, ebx
mov ecx, 2
mov esi, 0xffffffff
cmovb edx, ebx
sub ecx, edi
js 0x586ddf
movzx esi, word [esp + 0x74]
add ecx, ecx
sub ecx, esi
mov dword [esp + 0x20], esi
jns 0x586dfa
mov esi, 0xffffffff
jmp 0x586ddf
cmp dword [esp + 0xa8], 0
je 0x586ddf
cmp ebp, 1
jne 0x586ddf
mov ecx, dword [esp + 0x20]
mov word [esp + 0x52], 0
mov word [esp + 0x54], dx
add ecx, edx
mov edx, dword [esp + 0x4c]
mov word [esp + 0x56], cx
add edx, ecx
mov ecx, dword [esp + 8]
mov word [esp + 0x58], dx
add ecx, edx
mov edx, dword [esp + 0x1c]
add edi, ecx
mov word [esp + 0x5a], cx
mov ecx, dword [esp + 0x44]
mov word [esp + 0x5c], di
add ecx, edi
add edx, ecx
mov word [esp + 0x5e], cx
mov ecx, dword [esp + 0x10]
mov word [esp + 0x60], dx
add ecx, edx
mov edx, dword [esp + 0x2c]
mov word [esp + 0x62], cx
add edx, ecx
mov ecx, dword [esp + 0xc]
mov word [esp + 0x64], dx
add ecx, edx
mov edx, dword [esp + 0x40]
mov word [esp + 0x66], cx
add edx, ecx
mov ecx, dword [esp + 0x28]
mov word [esp + 0x68], dx
add ecx, edx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x6a], cx
add edx, ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0x6c], dx
add ecx, edx
test eax, eax
mov word [esp + 0x6e], cx
je 0x586aaf
xor ecx, ecx
mov edx, dword [esp + 0xac]
movzx edx, word [edx + ecx*2]
test edx, edx
je 0x586aaa
movzx esi, word [esp + edx*2 + 0x50]
lea edi, [esi + 1]
mov word [esp + edx*2 + 0x50], di
mov edi, dword [esp + 0xbc]
mov word [edi + esi*2], cx
inc ecx
cmp ecx, eax
jne 0x586a83
mov ecx, dword [esp + 0xa8]
xor edi, edi
test ecx, ecx
jne 0x586ae8
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], 0x14
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
jmp 0x586b73
mov eax, dword [esp + 0x18]
cmp ecx, 1
jne 0x586b27
mov esi, 1
cmp eax, 9
ja 0x586ddf
mov al, 1
mov dword [esp + 0xc], 0x101
mov dword [esp + 0x14], 0x6a110e
mov dword [esp + 0x38], 0x6a10d0
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
jmp 0x586b73
cmp ecx, 2
mov dword [esp + 0x14], 0x6a118c
mov dword [esp + 0x38], 0x6a114c
sete cl
mov dword [esp + 0x30], ecx
je 0x586b55
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0
jmp 0x586b73
mov esi, 1
cmp eax, 9
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0
ja 0x586ddf
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x18]
mov edx, 1
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x40], ebp
mov eax, dword [eax]
shl edx, cl
mov dword [esp + 0x34], edx
dec edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov eax, ebx
mov edx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x44], edi
sub eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xbc]
movzx eax, word [eax + edi*2]
movzx ecx, ax
mov dword [esp + 0x20], eax
lea eax, [ecx + 1]
cmp eax, edx
jae 0x586bf7
mov dword [esp + 0x1c], 0
jmp 0x586c24
cmp edx, ecx
jbe 0x586c0b
mov al, 0x60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
jmp 0x586c24
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x38]
mov al, byte [eax + ecx*2]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + ecx*2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov edx, 1
mov ecx, dword [esp]
mov edi, dword [esp + 0x1c]
shl edx, cl
mov ecx, dword [esp + 4]
mov dword [esp + 0x4c], edx
shr eax, cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
lea esi, [ecx + edx]
mov edx, edi
test ecx, ecx
mov byte [eax + esi*4], dl
mov edx, dword [esp]
mov byte [eax + esi*4 + 1], dl
mov word [eax + esi*4 + 2], bp
jne 0x586c4c
mov ecx, ebx
mov edx, 1
dec cl
shl edx, cl
mov ecx, dword [esp + 8]
mov eax, edx
shr edx, 1
test eax, ecx
jne 0x586c7f
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
test eax, eax
jne 0x586c97
xor ecx, ecx
jmp 0x586ca0
mov edx, ecx
lea ecx, [eax - 1]
and ecx, edx
add ecx, eax
mov edx, dword [esp + 0x18]
dec word [esp + ebx*2 + 0x70]
jne 0x586cce
cmp ebx, ebp
je 0x586daa
mov eax, dword [esp + 0xbc]
mov esi, ecx
mov ecx, dword [esp + 0xac]
movzx eax, word [eax + edi*2 + 2]
movzx ebx, word [ecx + eax*2]
mov ecx, esi
inc edi
cmp ebx, edx
jbe 0x586bbf
mov eax, ecx
and eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x28]
je 0x586bbf
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov esi, 1
test ecx, ecx
cmove ecx, edx
mov edx, ebx
sub edx, ecx
mov dword [esp + 4], ecx
mov ecx, edx
shl esi, cl
cmp ebx, ebp
mov ecx, ebx
jae 0x586d2c
movzx ecx, word [esp + ecx*2 + 0x70]
sub esi, ecx
jle 0x586d23
mov ecx, dword [esp + 4]
add esi, esi
lea ecx, [edx + ecx + 1]
inc edx
cmp ecx, ebp
jb 0x586d0b
mov esi, 1
mov ecx, edx
shl esi, cl
mov ecx, dword [esp + 0x34]
mov dword [esp], edx
add ecx, esi
mov esi, 1
cmp ecx, 0x354
mov dword [esp + 0x34], ecx
seta dl
cmp ecx, 0x250
seta cl
test byte [esp + 0x24], dl
jne 0x586ddf
and cl, byte [esp + 0x30]
mov ebp, dword [esp + 0x10]
jne 0x586ddf
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp]
mov dword [esp + 0x28], eax
lea ebp, [ebp + ecx*4]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], ebp
mov esi, ecx
mov ecx, dword [ecx]
mov byte [ecx + eax*4], dl
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
mov byte [ecx + eax*4 + 1], dl
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx]
sub ebp, ecx
shr ebp, 2
mov word [ecx + eax*4 + 2], bp
mov ecx, dword [esp]
jmp 0x586bb0
test ecx, ecx
je 0x586dc4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp]
mov byte [eax + ecx*4], 0x40
mov byte [eax + ecx*4 + 1], bl
mov word [eax + ecx*4 + 2], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xb4]
shl ecx, 2
add dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [ecx], edx
xor esi, esi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0068f43b
mov eax, esi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
movzx esi, word [esp + 0x76]
add ecx, ecx
mov dword [esp + 0x4c], esi
sub ecx, esi
mov esi, 0xffffffff
js 0x586ddf
mov dword [esp + 0x48], edi
movzx edi, word [esp + 0x78]
add ecx, ecx
sub ecx, edi
mov dword [esp + 8], edi
js 0x586ddf
movzx edi, word [esp + 0x7a]
add ecx, ecx
sub ecx, edi
js 0x586ddf
mov dword [esp + 4], edi
movzx edi, word [esp + 0x7c]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x44], edi
js 0x586ddf
movzx edi, word [esp + 0x7e]
add ecx, ecx
sub ecx, edi
js 0x586ddf
mov dword [esp + 0x1c], edi
movzx edi, word [esp + 0x80]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x10], edi
js 0x586ddf
movzx edi, word [esp + 0x82]
add ecx, ecx
sub ecx, edi
js 0x586ddf
mov dword [esp + 0x2c], edi
movzx edi, word [esp + 0x84]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0xc], edi
js 0x586ddf
movzx edi, word [esp + 0x86]
add ecx, ecx
sub ecx, edi
js 0x586ddf
mov dword [esp + 0x40], edi
movzx edi, word [esp + 0x88]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x28], edi
js 0x586ddf
movzx edi, word [esp + 0x8a]
add ecx, ecx
sub ecx, edi
js 0x586ddf
mov dword [esp + 0x3c], edi
movzx edi, word [esp + 0x8c]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x14], edi
js 0x586ddf
movzx edi, word [esp]
add ecx, ecx
mov dword [esp + 0x18], edx
sub ecx, edi
js 0x586ddf
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 4]
test ecx, ecx
jne 0x5869cf
jmp 0x5869e6
cmp word [esp + 0x8a], 0
je 0x586f24
mov ebp, 0xd
jmp 0x58697a
cmp word [esp + 0x88], 0
je 0x586f39
mov ebp, 0xc
jmp 0x58697a
cmp word [esp + 0x86], 0
je 0x586f4e
mov ebp, 0xb
jmp 0x58697a
cmp word [esp + 0x84], 0
je 0x586f63
mov ebp, 0xa
jmp 0x58697a
cmp word [esp + 0x82], 0
je 0x586f78
mov ebp, 9
jmp 0x58697a
cmp word [esp + 0x80], 0
je 0x586f8d
mov ebp, 8
jmp 0x58697a
cmp word [esp + 0x7e], 0
je 0x586f9f
mov ebp, 7
jmp 0x58697a
cmp word [esp + 0x7c], 0
je 0x586fb1
mov ebp, 6
jmp 0x58697a
cmp word [esp + 0x7a], 0
je 0x586fc3
mov ebp, 5
jmp 0x58697a
cmp word [esp + 0x78], 0
je 0x586fd5
mov ebp, 4
jmp 0x58697a
cmp word [esp + 0x76], 0
je 0x586fe7
mov ebp, 3
jmp 0x58697a
cmp word [esp + 0x74], 0
je 0x586ff9
mov ebp, 2
jmp 0x58697a
cmp word [esp + 0x72], 0
jne 0x58703d
mov eax, dword [esp + 0xb4]
mov edx, eax
mov eax, dword [eax]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov dword [eax], 0x140
mov eax, dword [edx]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax], 0x140
mov dword [ecx], 1
jmp 0x586ddd
mov edx, dword [esi]
jmp 0x586966
xor ecx, ecx
test edx, edx
mov ebp, 1
mov dword [esp], 0
mov ebx, 1
setne cl
mov edx, ecx
jmp 0x586996