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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x58824c
sub esp, 0xa4
lea edi, [esp + 0xb4]
xor eax, eax
call fcn.00465fe3
lea edi, [esp + 0x70]
call fcn.00465fe3
mov ecx, dword [esp + 0xac]
cmp ecx, 4
jl 0x5872c1
mov edx, dword [esp + 0xa8]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x70], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x58823f
movzx eax, byte [edx + 3]
movzx ebx, byte [edx + 2]
shl ebx, 8
or eax, ebx
movzx eax, ax
mov ebx, eax
shl eax, 1
lea ebp, [eax + 4]
cmp ecx, ebp
jl 0x5871f8
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebp
lea eax, [0x6b35e0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xa8]
xor ebp, ebp
jmp 0x587367
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], ebp
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x706b48]
mov dword [esp], eax
mov dword [esp + 4], 0x3e
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
lea ebp, [esi + 1]
mov esi, dword [esp + 0xb0]
mov ecx, edx
mov edx, esi
cmp ebp, eax
jge 0x5875ae
mov esi, ebp
shl ebp, 1
lea edi, [ebp + 4]
cmp ecx, edi
jb 0x588238
sub edx, ebp
add edx, 0xfffffffc
neg edx
sar edx, 0x1f
and edi, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffffc
cmp ecx, 1
jbe 0x58822e
movzx ebp, byte [edi + ebx + 1]
movzx edi, byte [edi + ebx]
shl edi, 8
or ebp, edi
movzx ebp, bp
test ebp, ebp
je 0x587359
cmp edx, ebp
jl 0x5874e5
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0xb0]
sub eax, ebp
mov esi, eax
neg eax
sar eax, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp], eax
sub edx, ebp
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.00582790
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x34]
cmp edi, ecx
jae 0x588227
mov ecx, esi
lea esi, [eax + edi*8]
mov dword [esi], ebx
mov ebx, dword [0x1eaa9f0]
lea esi, [eax + edi*8 + 4]
test ebx, ebx
jne 0x587426
mov dword [esi], edx
jmp 0x587433
mov eax, edx
mov edx, edi
mov edi, esi
call fcn.00465d80
mov edi, edx
test ebp, ebp
jne 0x587450
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov esi, edi
jmp 0x587359
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test ecx, ecx
je 0x587469
mov esi, dword [ecx + 4]
jmp 0x58746b
mov esi, ecx
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
lea eax, [0x6fd16d]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], ebp
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov ebp, dword [esp + 0x3c]
lea esi, [ebp + 6]
cmp ecx, esi
jl 0x58772a
mov esi, dword [esp + 0x38]
cmp ecx, esi
jb 0x588220
sub edx, ebp
add edx, 0xfffffffc
neg edx
sar edx, 0x1f
and esi, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffffc
cmp ecx, 1
jbe 0x588216
movzx ecx, byte [esi + ebx + 1]
movzx esi, byte [esi + ebx]
shl esi, 8
or ecx, esi
movzx ecx, cx
lea esi, [ebp + ecx*2 + 6]
lea ebp, [ebp + ecx*2]
cmp edx, esi
jl 0x587661
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
lea eax, [0x6b35e0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0x40]
xor esi, esi
jmp 0x5877d4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], esi
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x707479]
mov dword [esp], eax
mov dword [esp + 4], 0x42
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov edi, dword [esp + 0x24]
lea esi, [edi + 1]
mov edi, dword [esp + 0xb0]
mov ecx, edx
mov edx, edi
cmp esi, eax
jge 0x587a25
mov dword [esp + 0x24], esi
shl esi, 1
lea edi, [esi + ebp*2]
lea esi, [esi + ebp*2 + 6]
cmp ecx, esi
jb 0x58820f
sub edx, edi
add edx, 0xfffffffa
neg edx
sar edx, 0x1f
and esi, edx
mov edx, ecx
sub ecx, edi
add ecx, 0xfffffffa
cmp ecx, 1
jbe 0x588205
movzx edi, byte [esi + ebx + 1]
movzx esi, byte [esi + ebx]
shl esi, 8
or edi, esi
movzx esi, di
test esi, esi
je 0x5877c2
cmp edx, esi
jl 0x58795c
mov eax, dword [esp + 0xb0]
sub eax, esi
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, esi
add eax, ebx
mov dword [esp], eax
sub edx, esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00582790
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x24]
cmp edi, ecx
jae 0x5881fe
mov ecx, esi
lea esi, [eax + edi*8]
mov dword [esi], ebx
mov ebx, dword [0x1eaa9f0]
lea esi, [eax + edi*8 + 4]
test ebx, ebx
jne 0x58789b
mov dword [esi], edx
jmp 0x5878a8
mov eax, edx
mov edx, edi
mov edi, esi
call fcn.00465d80
mov edi, edx
test ebp, ebp
jne 0x5878c7
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0x40]
jmp 0x5877c2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test ecx, ecx
je 0x5878e0
mov esi, dword [ecx + 4]
jmp 0x5878e2
mov esi, ecx
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
lea eax, [0x6fd16d]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], esi
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov ebp, dword [esp + 0x3c]
lea ebp, [ebp + eax*2 + 8]
cmp ecx, ebp
jl 0x587ba6
mov eax, dword [esp + 0x38]
cmp ecx, eax
jb 0x5881f9
mov ebp, dword [esp + 0x34]
sub edx, ebp
add edx, 0xfffffffa
neg edx
sar edx, 0x1f
and eax, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffffa
cmp ecx, 1
jbe 0x5881ef
movzx ecx, byte [eax + ebx + 1]
movzx eax, byte [eax + ebx]
shl eax, 8
or ecx, eax
movzx eax, cx
lea ecx, [ebp + eax*2 + 8]
lea edi, [ebp + eax*2]
cmp edx, ecx
jl 0x587add
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edi
lea ecx, [0x6b35e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0x34]
xor esi, esi
jmp 0x587c4e
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x707479]
mov dword [esp], eax
mov dword [esp + 4], 0x42
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
inc esi
mov edi, dword [esp + 0xb0]
mov ebp, dword [esp + 0x34]
mov ecx, edx
mov edx, edi
cmp esi, eax
jge 0x587e9d
lea edi, [ebp + esi*2]
lea ebp, [ebp + esi*2 + 8]
cmp ecx, ebp
jb 0x5881e8
sub edx, edi
add edx, 0xfffffff8
neg edx
sar edx, 0x1f
and ebp, edx
mov edx, ecx
sub ecx, edi
add ecx, 0xfffffff8
cmp ecx, 1
jbe 0x5881de
movzx edi, byte [ebp + ebx + 1]
movzx ebp, byte [ebp + ebx]
shl ebp, 8
or edi, ebp
movzx ebp, di
test ebp, ebp
je 0x587c3e
cmp edx, ebp
jl 0x587dd4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0xb0]
sub eax, ebp
mov esi, eax
neg eax
sar eax, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp], eax
sub edx, ebp
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.00582790
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x20]
cmp edi, ecx
jae 0x5881d7
mov ecx, esi
lea esi, [eax + edi*8]
mov dword [esi], ebx
mov ebx, dword [0x1eaa9f0]
lea esi, [eax + edi*8 + 4]
test ebx, ebx
jne 0x587d15
mov dword [esi], edx
jmp 0x587d22
mov eax, edx
mov edx, edi
mov edi, esi
call fcn.00465d80
mov edi, edx
test ebp, ebp
jne 0x587d3f
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov esi, edi
jmp 0x587c3e
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test ecx, ecx
je 0x587d58
mov esi, dword [ecx + 4]
jmp 0x587d5a
mov esi, ecx
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], eax
lea eax, [0x6fd16d]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], ebp
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
lea ebp, [ebp + eax*2 + 0xa]
cmp ecx, ebp
jl 0x588012
mov eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x5881d2
mov ebp, dword [esp + 0x3c]
sub edx, ebp
add edx, 0xfffffff8
neg edx
sar edx, 0x1f
and eax, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffff8
cmp ecx, 1
jbe 0x5881c8
movzx ecx, byte [eax + ebx + 1]
movzx eax, byte [eax + ebx]
shl eax, 8
or ecx, eax
movzx eax, cx
lea ecx, [ebp + eax*4 + 0xa]
cmp edx, ecx
jl 0x587f49
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
lea ecx, [0x6b3b80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xac]
xor esi, esi
jmp 0x5880d6
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x706d7b]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x707479]
mov dword [esp], eax
mov dword [esp + 4], 0x42
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf0], eax
add esp, 0xa4
ret
mov edx, dword [esp + 0x50]
lea edx, [edx + esi*4 + 2]
mov ebx, dword [esp + 0x34]
movzx ebp, byte [ecx + ebx + 3]
movzx ebx, byte [ecx + ebx + 2]
shl ebx, 8
or ebp, ebx
mov word [edx], bp
inc esi
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0xb0]
mov ebp, edi
cmp esi, eax
jge 0x588166
mov edi, ebx
lea ebx, [edx + esi*4]
lea edx, [edx + esi*4 + 0xa]
cmp ebp, edx
jb 0x5881bf
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x38], ebp
sub edi, ebx
lea ebp, [edi - 0xa]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edx
mov edx, dword [esp + 0xac]
mov edi, edx
sub edx, ebx
mov ebx, dword [esp + 0x38]
cmp esi, ebx
jae 0x5881b6
lea ebx, [edx - 0xa]
cmp ebx, 3
jbe 0x5881aa
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebp
mov ebx, dword [esp + 0x50]
lea ebx, [ebx + esi*4]
movzx edx, byte [ecx + ebp + 1]
movzx ebp, byte [ecx + ebp]
shl ebp, 8
or edx, ebp
mov word [ebx], dx
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
cmp edx, 1
ja 0x5880aa
jmp 0x58819e
lea edi, [esp + 0xb4]
lea esi, [esp + 0x70]
call fcn.0046647e
mov eax, dword [esp + 0x40]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
add esp, 0xa4
ret
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, 3
mov ecx, ebx
call fcn.00465e00
mov eax, esi
mov ecx, ebx
call fcn.00465e00
mov eax, edx
mov ecx, ebp
call fcn.00465e60
mov eax, 1
call fcn.00465e00
call fcn.00465e60
mov eax, edi
call fcn.00465e00
mov eax, 1
call fcn.00465e00
mov eax, ebp
call fcn.00465e60
mov eax, 1
call fcn.00465e00
call fcn.00465e60
mov eax, edi
call fcn.00465e00
mov eax, 1
call fcn.00465e00
mov eax, esi
call fcn.00465e60
mov eax, 1
call fcn.00465e00
mov eax, esi
call fcn.00465e60
mov eax, edi
call fcn.00465e00
mov eax, 1
call fcn.00465e00
mov eax, edi
call fcn.00465e60
mov eax, 1
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.00587120