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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x581490
sub esp, 0xb4
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
cmp edx, 5
jb 0x581489
add ebx, 0xfffffffb
mov dword [esp + 0x6c], ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 5
add ecx, ebx
mov dword [esp + 0x9c], ecx
mov ebx, dword [esp + 0xb8]
mov esi, dword [ebx + 0x20]
mov edi, dword [ebx + 0x1c]
test edi, edi
jne 0x5813f8
xor esi, esi
mov dword [esp + 0x50], esi
add edx, 0xfffffffb
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
test edi, edi
je 0x5813df
je 0x58146f
mov dword [esp + 0x5c], edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0xb0], eax
lea ecx, [0x73eea0]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call fcn.00407c20
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x580f35
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x9c]
xor ebx, ebx
mov ebp, 0xffffffff
xor esi, esi
xchg ebp, eax
mov byte [esp + 0x4f], al
xchg ebp, eax
mov dword [esp + 0x78], esi
mov edi, dword [esp + 0xb8]
mov ebp, dword [edi + 0x1c]
test ebp, ebp
je 0x580ece
mov ebp, dword [esp + 0x50]
cmp ecx, ebp
jl 0x580f13
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x94], edx
sub ecx, ebp
sub ecx, ebx
mov ebx, ecx
shr ecx, 0x1f
mov esi, dword [esp + 0xbc]
mov edx, dword [esi]
mov edi, dword [esi + 4]
dec ecx
mov dword [esp + 0x88], ecx
and ecx, ebx
cmp edi, 3
jbe 0x581445
mov edi, ecx
sar ecx, 8
mov byte [edx + 3], cl
mov ecx, dword [esi + 4]
mov edx, dword [esi]
cmp ecx, 4
jbe 0x58143e
xchg edi, eax
mov byte [edx + 4], al
xchg edi, eax
lea ecx, [ebp + edi]
test ecx, ecx
jl 0x581437
cmp edi, ecx
ja 0x581437
cmp ecx, eax
ja 0x581437
mov dword [esp + 0x84], edi
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0xb8]
lea ebp, [edx + 0x24]
test byte [ebp], al
sub eax, edi
mov dword [esp + 0x54], eax
neg eax
sar eax, 0x1f
and eax, edi
mov edi, dword [esp + 0x94]
add eax, edi
mov dword [esp + 0x90], eax
mov eax, dword [esi]
mov esi, dword [esi + 8]
cmp esi, 5
jb 0x581430
mov edi, dword [esp + 0x88]
test ebx, edi
jl 0x581430
mov ebx, dword [esp + 0x5c]
cmp ecx, ebx
ja 0x581430
mov edi, dword [edx + 0x1c]
mov ebx, dword [edx + 0x20]
mov dword [esp + 0xb0], ebx
mov edi, dword [edi + 0x10]
mov dword [esp + 0x8c], edi
mov edi, dword [edx + 0x50]
mov ebx, dword [edx + 0x54]
mov edx, dword [edx + 0x58]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x94]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x30], ebx
sub ebx, ecx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, ecx
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
call eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x90]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
call fcn.004db700
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x580e79
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov byte [esp + 0xc8], 0x14
add esp, 0xb4
ret
movzx ecx, byte [esp + 0x4f]
cmp cl, 0xff
jne 0x580e57
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xb8]
mov dword [edx + 0x54], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 0x58], ecx
mov ecx, dword [0xa8f2d0]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x78]
lea ebx, [ebp + ebx + 5]
test ecx, ecx
jne 0x580f02
mov eax, dword [esp + 0xa0]
mov dword [edx + 0x50], eax
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00581da0
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
call fcn.005809e0
mov byte [esp + 0xc0], 1
mov eax, dword [esp + 0x78]
add eax, 5
mov dword [esp + 0xc4], eax
mov byte [esp + 0xc8], 0
add esp, 0xb4
ret
lea edi, [edx + 0x50]
mov eax, dword [esp + 0xa0]
call fcn.0044c9e0
jmp 0x580ebb
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov byte [esp + 0xc8], 0x14
add esp, 0xb4
ret
lea eax, [0x75ae40]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 8], ecx
call fcn.00407c20
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x5811b0
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [ecx + 0x20]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jl 0x58118e
test eax, eax
jl 0x581468
mov edx, dword [esp + 0x6c]
cmp eax, edx
ja 0x581468
sub edx, eax
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, eax
mov esi, dword [esp + 0x9c]
add edx, esi
sub ecx, eax
test eax, eax
jne 0x58117a
mov ebx, dword [esp + 0xb8]
lea esi, [ebx + 0x24]
test byte [esi], al
mov edi, 8
mov edi, 8
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x88], eax
lea eax, [ebx + 0x30]
mov dword [esp + 0xac], eax
test byte [eax], al
lea eax, [ebx + 0x24]
test byte [eax], al
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edi
mov eax, dword [esp + 0xbc]
mov edi, dword [eax + 8]
mov eax, dword [eax]
cmp edi, 3
jb 0x581461
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x94], edx
mov dword [esp + 0x9c], esi
lea edi, [ebx + 0x38]
cmp eax, edi
je 0x58104b
movzx edi, word [eax]
movzx eax, byte [eax + 2]
mov word [ebx + 0x38], di
mov byte [ebx + 0x3a], al
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
mov edx, ecx
sub ecx, eax
mov eax, ecx
sar ecx, 8
mov ebx, dword [esp + 0xb8]
mov byte [ebx + 0x3b], cl
mov byte [ebx + 0x3c], al
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x84]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x30], 0xd
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x581158
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov edx, dword [esp + 0x88]
lea ebx, [ecx + edx + 5]
mov dword [esp + 4], ebx
call fcn.00581da0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x94]
xor ebx, ebx
mov ebp, 0xffffffff
mov esi, dword [esp + 0x88]
jmp 0x580c78
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov byte [esp + 0xc8], 0x14
add esp, 0xb4
ret
mov ebx, dword [esp + 0xb8]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
jmp 0x580fe0
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov byte [esp + 0xc8], 0x14
add esp, 0xb4
ret
lea eax, [0x74ac80]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
call fcn.00407c20
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test al, al
je 0x58146f
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x7c], edx
mov eax, dword [edx + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb8]
movzx edx, word [ecx + 0x10]
cmp dx, 0x302
jb 0x5813d6
mov edx, eax
test edx, edx
je 0x58145a
mov ebx, eax
mov eax, dword [esp + 0x5c]
mov ebp, edx
cmp ebp, 0xffffffff
je 0x581232
cdq
idiv ebp
jmp 0x581234
xor edx, edx
test edx, edx
je 0x58125a
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov byte [esp + 0xc8], 0x14
add esp, 0xb4
ret
mov edx, dword [esp + 0x50]
lea esi, [ebx + edx]
lea eax, [ebx + edx + 1]
cmp ebp, 0xffffffff
je 0x58126f
cdq
idiv ebp
jmp 0x581271
xor edx, edx
mov eax, ebp
sub eax, edx
cmp ebp, 0xffffffff
je 0x58127f
cdq
idiv ebp
jmp 0x581281
xor edx, edx
lea edx, [edx + esi + 1]
mov ebp, dword [esp + 0x5c]
cmp ebp, edx
jl 0x581238
mov dword [esp + 0x88], ebx
test ebx, ebx
jle 0x5813c4
mov eax, dword [esp + 0x6c]
cmp ebx, eax
ja 0x581453
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x18]
mov ebp, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xa4]
mov dword [esp], esi
call edx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
ja 0x58144c
sub ecx, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, eax
mov ebp, dword [esp + 0x9c]
add edx, ebp
mov dword [esp + 0x98], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0xa4]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 0xb8]
movzx ecx, word [eax + 0x10]
cmp cx, 0x300
jne 0x58138f
mov ecx, dword [esp + 0x58]
cmp ecx, 1
jge 0x58136f
xor edx, edx
xor ebx, ebx
mov eax, dword [esp + 0x60]
mov ebp, ebx
mov esi, dword [esp + 0x88]
mov ebx, edx
mov edx, dword [esp + 0x98]
jmp 0x580c78
mov edx, dword [esp + 0x98]
movzx ebx, byte [ecx + edx - 1]
inc ebx
cmp ebx, ecx
jle 0x581386
xor edx, edx
xor ebx, ebx
jmp 0x581354
mov edx, ebx
mov ebx, 0xffffffff
jmp 0x581354
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call fcn.00580a50
mov edx, dword [esp + 0xc]
movzx ebx, byte [esp + 0x10]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x58]
jmp 0x581354
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x6c]
mov ecx, ebp
jmp 0x5812fb
mov edx, eax
xor eax, eax
jmp 0x581218
mov eax, ebp
mov ecx, edx
mov edx, dword [esp + 0x9c]
xor ebx, ebx
mov ebp, 0xffffffff
xor esi, esi
jmp 0x580c78
mov dword [esp + 0x84], edx
mov eax, dword [edi + 0x14]
mov dword [esp], esi
call eax
mov esi, dword [esp + 4]
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x6c]
jmp 0x580bd9
call fcn.004267e0
ud2
call fcn.004267e0
ud2
call fcn.004266e0
ud2
call fcn.004266e0
ud2
call fcn.004267e0
ud2
call fcn.004267e0
ud2
call fcn.004268e0
ud2
call fcn.004267e0
ud2
call fcn.004267e0
ud2
lea eax, [0x730dc0]
mov dword [esp], eax
lea eax, [0x7fc610]
mov dword [esp + 4], eax
call fcn.004275c0
ud2
call fcn.004267e0
ud2
call fcn.0044b280
jmp fcn.00580b70