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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5817e8
sub esp, 0x74
mov edx, dword [esp + 0x78]
mov ebx, dword [edx + 0x10]
test ebx, 0x40
je 0x58172f
mov ebx, dword [edx + 0x10]
test ebx, 7
je 0x580feb
test ebx, 0x20
je 0x580fcd
lea edi, [esp + 0x60]
lea esi, [esp + 0x80]
call fcn.0045caae
nop
nop
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
test ebx, 0x80000000
je 0x580fb5
shl ebx, 1
mov ebp, ecx
shr ecx, 0x1f
or ecx, ebx
shl ebp, 1
mov ebx, ecx
shl ecx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
add ebp, 0xd7b17f80
mov dword [esp + 0x68], ebp
shr ebx, 0x1f
add ecx, 0xd7b17f80
adc ebx, 0xd
mov dword [esp + 0x6c], ebx
and dword [esp + 0x60], 0x3fffffff
mov dword [esp + 0x64], 0
mov dword [esp + 0x70], 0
lea edi, [esp + 0x80]
lea esi, [esp + 0x60]
call fcn.0045caae
mov ebx, dword [edx + 0x10]
test ebx, 1
jne 0x58156e
mov ebx, dword [edx + 0x10]
test ebx, 6
jne 0x5812e8
mov ebx, dword [edx + 0x10]
test ebx, 0x18
je 0x5812df
test ebx, 0x10
je 0x5812cc
mov ecx, dword [esp + 0x98]
lea ebx, [ecx - 1]
mov ebp, dword [esp + 0x94]
jmp 0x58101a
dec ebx
test ebx, ebx
jle 0x5812c3
cmp ebx, ecx
jae 0x5817e0
lea esi, [ebp + ebx]
cmp byte [esi], 0x2f
jne 0x581019
lea eax, [ebx + 1]
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, eax
lea eax, [ebp + ecx]
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x7c]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x40], ebp
lea esi, [ebx + ebp]
mov dword [esp + 0x3c], esi
mov edi, dword [ecx + 8]
mov edx, dword [ecx]
cmp esi, edi
ja 0x58127f
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edx
lea ecx, [edx + ebp]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.0045ccd0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x38]
mov dword [edi + 8], ecx
mov edx, dword [0xa8c6b0]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x40]
lea ebx, [ebp + ebx + 1]
test edx, edx
jne 0x581269
mov edx, dword [esp + 0x48]
mov dword [edi], edx
cmp ebx, ecx
ja 0x58121c
lea ecx, [eax + 1]
mov dword [edi + 4], ecx
mov byte [edx + eax], 0x3a
mov dword [esp], edi
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xffffffff
call fcn.00580da0
mov edi, dword [esp + 0x7c]
mov eax, dword [edi + 4]
lea ecx, [eax + 2]
mov edx, dword [edi + 8]
mov ebx, dword [edi]
cmp ecx, edx
ja 0x5811dd
mov word [ebx + eax], 0x203a
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0xa8c6b0]
test ecx, ecx
jne 0x5811d1
mov dword [edi], ebx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x10]
test ecx, 0x40
je 0x58117f
mov ecx, dword [edi + 4]
mov edx, dword [eax + 0xc]
lea ebx, [edx + ecx]
mov dword [esp + 0x40], ebx
mov ebp, dword [edi + 8]
mov esi, dword [edi]
mov eax, dword [eax + 8]
cmp ebx, ebp
ja 0x58118e
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], esi
add ecx, esi
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0045ccd0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x7c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 8], eax
mov eax, dword [0xa8c6b0]
test eax, eax
jne 0x581183
mov eax, dword [esp + 0x48]
mov dword [edi], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x48]
call fcn.0045c330
jmp 0x58117f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], edx
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004431f0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
jmp 0x581143
mov eax, ebx
call fcn.0045c330
jmp 0x58111b
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
lea ebp, [0x787b20]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.004431f0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x7c]
jmp 0x5810ff
lea ebp, [0x787b20]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x581262
mov dword [edi], eax
mov edx, eax
mov eax, ecx
jmp 0x5810c3
call fcn.0045c330
jmp 0x581259
mov edx, eax
mov eax, dword [esp + 0x48]
call fcn.0045c330
mov eax, edx
mov edx, dword [esp + 0x48]
jmp 0x5810bb
mov dword [esp + 0x94], eax
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
call fcn.004431f0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x40]
jmp 0x58106b
mov ebx, ecx
mov eax, ebp
jmp 0x581045
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
jmp 0x581045
mov edi, dword [esp + 0x7c]
jmp 0x58111b
mov edi, esp
lea esi, [esp + 0x80]
call fcn.0045caae
call fcn.004b0d60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.00580da0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
lea ebp, [ecx + 1]
cmp ebp, ebx
ja 0x581521
lea ebx, [ecx + 1]
mov dword [eax + 4], ebx
mov byte [edx + ecx], 0x3a
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.00580da0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
lea edx, [ecx + 1]
mov ebx, dword [eax]
mov ebp, dword [eax + 8]
cmp edx, ebp
ja 0x5814d4
lea edx, [ecx + 1]
mov dword [eax + 4], edx
mov byte [ebx + ecx], 0x3a
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.00580da0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x10]
test ecx, 4
jne 0x58141c
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 4]
lea ebp, [ebx + 1]
mov esi, dword [edx]
mov edi, dword [edx + 8]
cmp ebp, edi
ja 0x5813cc
lea ebp, [ebx + 1]
mov dword [edx + 4], ebp
mov byte [esi + ebx], 0x20
mov edx, eax
jmp 0x580feb
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebp
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x581415
mov dword [edi], eax
mov edx, edi
mov ebx, ecx
mov esi, eax
mov eax, dword [esp + 0x78]
jmp 0x5813bb
call fcn.0045c330
jmp 0x581409
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
lea ebx, [edx + 1]
mov ebp, dword [ecx]
mov esi, ecx
mov ecx, dword [ecx + 8]
cmp ebx, ecx
ja 0x581485
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
mov byte [ebp + edx], 0x2e
lea edi, [esp + 0x4c]
mov eax, esi
lea esi, [esp + 0x80]
call fcn.0045caae
nop
mov ecx, dword [esp + 0x4c]
mov dword [esp], eax
and ecx, 0x3fffffff
mov eax, 0x4189374c
imul ecx
sar edx, 8
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 6
call fcn.00580da0
mov eax, dword [esp + 0x78]
jmp 0x5813a8
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x5814cd
mov dword [edi], eax
mov esi, edi
mov edx, ecx
mov ebp, eax
jmp 0x581431
call fcn.0045c330
jmp 0x5814c2
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x58151a
mov dword [edi], eax
mov ebx, eax
mov eax, edi
jmp 0x581377
call fcn.0045c330
jmp 0x581511
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x581567
mov dword [edi], eax
mov edx, eax
mov eax, edi
jmp 0x58133e
call fcn.0045c330
jmp 0x58155e
nop
mov edi, esp
lea esi, [esp + 0x80]
call fcn.0045caae
mov byte [esp + 0x14], 1
call fcn.004b2480
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.00580da0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
lea ebp, [ecx + 1]
cmp ebx, ebp
jb 0x5816e2
lea ebx, [ecx + 1]
mov dword [eax + 4], ebx
mov byte [edx + ecx], 0x2f
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.00580da0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
lea edx, [ecx + 1]
mov ebx, dword [eax]
mov ebp, dword [eax + 8]
cmp edx, ebp
ja 0x581695
lea edx, [ecx + 1]
mov dword [eax + 4], edx
mov byte [ebx + ecx], 0x2f
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.00580da0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
lea edx, [ecx + 1]
mov ebx, dword [eax]
mov ebp, dword [eax + 8]
cmp edx, ebp
ja 0x58164b
lea ebp, [ecx + 1]
mov dword [eax + 4], ebp
mov byte [ebx + ecx], 0x20
mov edx, dword [esp + 0x78]
jmp 0x580fdc
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x58168e
mov dword [edi], eax
mov ebx, eax
mov eax, edi
jmp 0x581638
call fcn.0045c330
jmp 0x581688
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x5816db
mov dword [edi], eax
mov ebx, eax
mov eax, edi
jmp 0x581603
call fcn.0045c330
jmp 0x5816d2
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x581728
mov dword [edi], eax
mov edx, eax
mov eax, edi
jmp 0x5815ca
call fcn.0045c330
jmp 0x58171f
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
mov ebx, dword [edx + 0xc]
lea ebp, [ecx + ebx]
mov dword [esp + 0x40], ebp
mov esi, dword [eax + 8]
mov edi, dword [eax]
mov edx, dword [edx + 8]
cmp ebp, esi
ja 0x58179d
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], edi
lea eax, [edi + ecx]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0045ccd0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x7c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 8], eax
mov eax, dword [0xa8c6b0]
test eax, eax
jne 0x581792
mov edx, dword [esp + 0x48]
mov dword [edi], edx
mov edx, dword [esp + 0x78]
jmp 0x580f3c
mov eax, dword [esp + 0x48]
call fcn.0045c330
jmp 0x581789
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ecx
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.004431f0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
jmp 0x58174c
mov eax, ebx
call fcn.0045c3b0
nop
call fcn.0045ade0
jmp fcn.00580f10