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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x581e93
sub esp, 0x9c
lea eax, [0x607140]
mov dword [esp], eax
mov ecx, dword [esp + 0xa4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xac]
lea ebx, [ecx + edx*2 + 1]
mov dword [esp + 0x30], ebx
mov dword [esp + 8], ebx
call fcn.004475c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
je 0x5816d0
mov dword [esp + 0x98], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 8], ecx
call fcn.0045f270
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebp, dword [esp + 0xa4]
mov ebx, dword [esp + 0x30]
xor esi, esi
xor edi, edi
xor esi, esi
mov dword [esp + 0x24], esi
xor esi, esi
jmp 0x581702
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x50], edi
cmp edx, esi
jle 0x5817d9
movzx ecx, byte [ecx + esi]
cmp ecx, 0x80
jge 0x581721
inc esi
jmp 0x581765
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.004588b0
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
cmp ecx, 0x80
jge 0x5817cf
lea edx, [ebp + 1]
cmp ebx, edx
jae 0x5817b9
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], esi
lea ecx, [0x607140]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00447740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x50]
mov byte [eax + ebp], cl
inc edi
mov ecx, dword [esp + 0x24]
mov ebp, edx
mov edx, dword [esp + 0xac]
jmp 0x5816f7
mov ecx, dword [esp + 0x24]
inc ecx
jmp 0x5816f7
test edi, edi
jle 0x58182d
lea esi, [ebp + 1]
cmp ebx, esi
jae 0x581827
lea ecx, [0x607140]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
call fcn.00447740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
mov byte [eax + ebp], 0x2d
jmp 0x58182f
mov esi, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, 0x48
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x88]
jmp 0x58187e
inc ecx
inc ebx
mov ebp, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ecx
mov eax, esi
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0x2c]
test ebp, ebp
je 0x58196a
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, 0x7fffffff
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x80]
jmp 0x5819c9
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
sub ebx, ecx
lea ecx, [edi + 1]
mov dword [esp + 0x48], ecx
mov eax, ebx
mul ecx
mov ebp, 0x7fffffff
mov esi, dword [esp + 0x44]
sub ebp, esi
cmp eax, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
sar esi, 0x1f
mov edi, 0x7fffffff
mov ebp, dword [esp + 0x44]
sub edi, ebp
mov edi, 0
sbb edi, esi
mov esi, ebx
sar ebx, 0x1f
sar ecx, 0x1f
imul esi, ecx
mov ecx, dword [esp + 0x48]
imul ecx, ebx
add ecx, edx
add ecx, esi
cmp edi, ecx
setl cl
sete dl
movzx ebx, byte [esp + 0x23]
and edx, ebx
or ecx, edx
test cl, cl
jne 0x581a36
lea ecx, [ebp + eax]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
jmp 0x581ac7
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.0044aee0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0x9c
ret
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], esi
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x6c]
cmp edx, ebx
jle 0x5818bf
movzx ebp, byte [ecx + ebx]
cmp ebp, 0x80
jge 0x5819e4
inc ebx
jmp 0x581a19
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004588b0
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x64]
cmp esi, ebp
jle 0x581a2d
mov edi, dword [esp + 0x34]
cmp edi, ebp
jg 0x5819b1
mov esi, ebp
jmp 0x5819b1
mov edi, dword [esp + 0x34]
jmp 0x5819b1
lea eax, [0x61a8c0]
mov dword [esp], eax
call fcn.0040b440
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xac]
mov dword [edi + 4], eax
mov eax, dword [0x7e77b0]
test eax, eax
jne 0x581a67
mov eax, dword [esp + 0xa8]
mov dword [edi], eax
jmp 0x581a73
mov eax, dword [esp + 0xa8]
call fcn.0045e950
mov dword [edi + 0xc], 2
lea eax, [0x62dccd]
mov dword [edi + 8], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
lea eax, [0x68bb18]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edi
add esp, 0x9c
ret
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x4c], edx
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x6c]
cmp edx, ebp
jle 0x58185b
mov dword [esp + 0x60], edi
mov dword [esp + 0x44], ecx
movzx edx, byte [eax + ebp]
cmp edx, 0x80
jge 0x581aee
inc ebp
jmp 0x581b2e
mov dword [esp + 0x94], esi
mov dword [esp], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.004588b0
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x60]
cmp edx, ebx
jge 0x581b44
inc ecx
test ecx, ecx
jl 0x581c9d
mov edx, dword [esp + 0x4c]
jmp 0x581ab4
jle 0x581b4f
mov edx, dword [esp + 0x4c]
jmp 0x581ab4
mov dword [esp + 0x5c], ebp
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x70], eax
mov eax, 0x24
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
jmp 0x581d5a
cmp ecx, 0x1a
jae 0x581b77
add ecx, 0x61
jmp 0x581b86
lea edx, [ecx - 0x1a]
cmp edx, 0xa
jae 0x581e5d
add ecx, 0x16
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
jae 0x581bdc
mov byte [esp + 0x21], cl
lea eax, [0x607140]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00447740
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x60]
mov ebp, ecx
movzx ecx, byte [esp + 0x21]
mov dword [esp + 0x2c], ebx
mov byte [esi + edx], cl
mov ecx, dword [esp + 0x50]
cmp edi, ecx
jne 0x581c0d
mov eax, 0x5d9f7391
mov ecx, dword [esp + 0x44]
imul ecx
sar edx, 8
sar ecx, 0x1f
sub edx, ecx
mov eax, dword [esp + 0xa8]
mov ecx, edx
mov edx, dword [esp + 0x50]
jmp 0x581c1e
mov edx, ecx
mov ecx, dword [esp + 0x44]
shr ecx, 0x1f
mov ebx, dword [esp + 0x44]
add ecx, ebx
sar ecx, 1
cmp edi, 0xffffffff
je 0x581e58
lea ebx, [edi + 1]
mov edi, eax
mov eax, ecx
cmp ebx, 0xffffffff
je 0x581c38
cdq
idiv ebx
jmp 0x581c3a
neg eax
add ecx, eax
xor eax, eax
jmp 0x581e46
lea edx, [ecx + ecx*8]
cmp ecx, 0xffffffda
je 0x581e53
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x58]
shl edx, 2
mov dword [esp + 0x58], edx
lea edx, [ecx + 0x26]
mov ecx, eax
mov eax, dword [esp + 0x58]
mov edi, edx
cmp edi, 0xffffffff
je 0x581c7c
cdq
idiv edi
jmp 0x581c7e
neg eax
lea edx, [eax + ecx]
mov eax, dword [esp + 0xa8]
xor ecx, ecx
mov dword [esp + 0x30], ebp
mov edi, ebx
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x5c]
jmp 0x581ab4
lea eax, [0x61a8c0]
mov dword [esp], eax
call fcn.0040b440
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xac]
mov dword [edi + 4], eax
mov eax, dword [0x7e77b0]
test eax, eax
jne 0x581cce
mov eax, dword [esp + 0xa8]
mov dword [edi], eax
jmp 0x581cda
mov eax, dword [esp + 0xa8]
call fcn.0045e950
mov dword [edi + 0xc], 2
lea eax, [0x62dccd]
mov dword [edi + 8], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
lea eax, [0x68bb18]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edi
add esp, 0x9c
ret
mov byte [esi + edx], cl
lea edx, [ebp + 0x24]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x58]
cmp ecx, 0xffffffff
je 0x581d33
cdq
idiv ecx
jmp 0x581d35
neg eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x5c]
mov ecx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x3c]
sub ebx, edx
mov ebp, dword [esp + 0x3c]
cmp ebp, edx
jg 0x581d6f
mov ebx, 1
jmp 0x581d7f
lea edi, [edx + 0x1a]
cmp ebp, edi
jl 0x581d7b
mov ebx, 0x1a
mov edi, dword [esp + 0x60]
cmp ecx, ebx
jl 0x581b6d
sub ecx, ebx
lea edi, [ebx - 0x24]
xchg edi, ebx
neg ebx
xchg edi, ebx
test edi, edi
je 0x581e8d
mov eax, ecx
cmp edi, 0xffffffff
je 0x581da6
cdq
idiv edi
jmp 0x581da8
xor edx, edx
mov eax, ecx
lea ecx, [edx + ebx]
cmp ecx, 0x1a
jae 0x581db8
lea ecx, [edx + ebx + 0x61]
jmp 0x581dc9
lea ecx, [edx + ebx - 0x1a]
cmp ecx, 0xa
jae 0x581e75
lea ecx, [edx + ebx + 0x16]
mov dword [esp + 0x58], edi
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
mov edi, dword [esp + 0x30]
cmp edi, ebx
jae 0x581d1b
mov dword [esp + 0x54], eax
mov byte [esp + 0x22], cl
lea eax, [0x607140]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.00447740
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x3c]
mov edi, ecx
movzx ecx, byte [esp + 0x22]
jmp 0x581d1b
mov dword [esp + 0x38], eax
mov eax, ecx
mov edx, 0xea0ea0eb
imul edx
add ecx, edx
sar ecx, 5
mov edx, dword [esp + 0x38]
lea eax, [edx + 0x24]
cmp ecx, 0x1c7
jg 0x581e2d
jmp 0x581c43
call fcn.004325d0
call fcn.004325d0
lea eax, [0x606f80]
mov dword [esp], eax
lea eax, [0x68b738]
mov dword [esp + 4], eax
call fcn.004337b0
lea eax, [0x606f80]
mov dword [esp], eax
lea eax, [0x68b738]
mov dword [esp + 4], eax
call fcn.004337b0
call fcn.004325d0
nop
call fcn.0045d540
jmp fcn.00581650