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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
movzx eax, word [ecx]
push esi
push edi
cmp ax, 0x40
jle 0x48797e
push 0x40
push 0x4110fc
push ebx
call fcn.0042aa60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x1c], 0x40
je 0x48798e
mov dword [esp + 0x20], 1
jmp 0x487995
movsx edx, ax
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x20]
mov esi, dword [ebx]
lea edi, [edi + edi*4]
shl edi, 4
add edi, 0x3f
and edi, 0xfffffff8
lea ecx, [edi + 0x26c]
mov dword [esp + 0x34], esi
call fcn.004289e0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4879d2
lea eax, [edi + 0x26c]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x36], 0
je 0x4879f0
mov ecx, dword [esp + 0x34]
mov eax, esi
call fcn.004287b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], ecx
mov dword [esi], ebx
mov dword [esi + 0xc], edx
call fcn.004447f0
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov ax, word [ebp + 0x1c]
add edi, esi
mov dword [esi + 0x20], edi
mov word [esi + 4], ax
fld qword [ebx + 0x1b0]
fstp qword [esi + 0x28]
test byte [ecx + 0x18], 0x80
mov dword [esp + 0x3c], edi
je 0x487a36
mov dword [ebp + 0x18], 0
push 0x104
lea eax, [edi + 0x168]
push 0
push eax
call sub.MSVCR100.dll_memset
mov cx, word [ebp + 0x1c]
lea eax, [edi + 0x168]
mov dword [edi + 4], eax
xor eax, eax
lea edx, [edi + 0x28]
add esp, 0xc
mov dword [edi], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 8
mov dword [edi + 0x20], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi + 0x16], cx
cmp dword [ebx + 0x15c], eax
jne 0x487ab7
mov edx, dword [ebx]
test byte [edx + 0x18], 0x40
jne 0x487ab7
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], 0x458310
mov dword [esp + 0x98], ebx
call fcn.00452770
add esp, 8
mov edx, dword [ebp + 0x10]
push 0x45
push edx
push edi
call fcn.00482100
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x487af2
cmp dword [esp + 0x20], 0
je 0x487adf
mov eax, dword [ebp + 0x10]
call fcn.00455930
test eax, eax
je 0x487af2
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x10]
push 8
push eax
push ecx
push ebx
call fcn.00458920
add esp, 0x10
mov esi, dword [ebp + 0xc]
xor edx, edx
xor ebx, ebx
cmp dx, word [esi]
jge 0x487b54
add esi, 0x14
jmp 0x487b10
mov ecx, dword [edi + 0x168]
mov edx, dword [esi + 0x14]
mov dword [edi + ecx*4 + 0x16c], edx
inc dword [edi + 0x168]
mov eax, dword [esi]
test eax, eax
je 0x487b46
test byte [eax + 0x22], 0x10
je 0x487b46
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.004cd450
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
inc ebx
add esi, 0x40
cmp ebx, ecx
jl 0x487b10
mov esi, dword [edi + 0x18]
dec esi
js 0x487b6e
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx]
push esi
push edi
push ebx
call fcn.00483370
add esp, 0xc
dec esi
jns 0x487b60
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x36], 0
jne 0x488052
mov eax, dword [ebp + 0x18]
xor esi, esi
cmp eax, esi
je 0x487ba9
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00483c40
add esp, 0xc
test eax, eax
je 0x487ba9
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x18], esi
mov byte [edx + 8], 1
or eax, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, 0x38
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], esi
jle 0x487ffc
jmp 0x487be0
xor eax, eax
fld qword [0x411678]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
fstp qword [esp + 0x78]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
dec eax
cmp dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0xffffffff
setl dl
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov eax, edx
mov dword [esp + 0x48], eax
cmp eax, ecx
jl 0x487eb8
cmp dword [esp + 0x2c], 0
jge 0x487eb8
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
shl eax, 6
lea edx, [eax + ecx + 8]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], edx
cmp ebx, dword [esp + 0x20]
jge 0x487eae
mov ecx, dword [esp + 0x10]
mov eax, ebx
lea eax, [eax + eax*4]
add eax, eax
lea edx, [ecx + eax*8 + 0x80]
mov dword [esp + 0x5c], edx
nop
mov eax, dword [esp + 0x14]
test byte [eax + 0x1c], 0xa
mov eax, 0
setne al
mov dword [esp + 0x44], eax
cmp ebx, dword [esp + 0x38]
je 0x487cb2
test eax, eax
jne 0x487eae
mov esi, dword [esp + 0x3c]
xor ecx, ecx
cmp dword [esi + 0x168], ecx
jle 0x487ce0
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x20]
lea eax, [esi + 0x16c]
lea ecx, [ecx]
cmp dword [eax], edx
je 0x487d0e
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x168]
jl 0x487cd0
xor edi, edi
xor esi, esi
mov eax, edi
and eax, dword [esp + 0x18]
mov ecx, esi
and ecx, dword [esp + 0x1c]
mov dword [esp + 0x8c], esi
or eax, ecx
jne 0x487d20
cmp ebx, dword [esp + 0x38]
jne 0x487e95
inc dword [esp + 0x38]
jmp 0x487e95
mov eax, 1
xor edx, edx
call fcn.004cd450
mov edi, eax
mov esi, edx
jmp 0x487ce4
cmp dword [esp + 0x48], 0
je 0x487d2b
mov edx, edi
jmp 0x487d33
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x487d46
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x487d46
mov ecx, dword [ecx]
jmp 0x487d48
xor ecx, ecx
mov ebx, dword [esp + 0x14]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x18]
cmp dword [ebx + 0x3c], 0
jne 0x487d5f
inc dword [esp + 0x58]
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0xc]
test byte [ebx + 0x22], 0x10
je 0x487d9b
mov eax, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 8]
push esi
push edx
mov edx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.00485040
jmp 0x487dc4
lea ebx, [esp + 0x98]
push ebx
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 8]
push esi
push edx
mov edx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.00485260
mov esi, dword [esp + 0xc0]
mov edx, dword [esp + 0xb4]
add esp, 0x28
cmp dword [esp + 0x48], 0
je 0x487dec
test esi, 0x100f3000
jne 0x487dec
or dword [esp + 0x50], edi
or dword [esp + 0x54], edx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
and eax, dword [esp + 0x18]
and ecx, dword [esp + 0x1c]
or eax, ecx
jne 0x487e8a
mov ecx, dword [esp + 0x2c]
test ecx, ecx
js 0x487e32
and edi, dword [esp + 0x50]
and edx, dword [esp + 0x54]
mov eax, edi
or eax, edx
jne 0x487e32
test dword [esp + 0x60], 0x100f3000
je 0x487e32
test esi, 0x100f3000
je 0x487e8a
cmp dword [esp + 0x58], 0
je 0x487e4b
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x3c], 0
je 0x487e4b
test esi, 0x100f3000
je 0x487e8a
test ecx, ecx
js 0x487f28
fld qword [esp + 0x78]
fld qword [esp + 0xb0]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x487f24
fcompp
fnstsw ax
test ah, 0x41
jp 0x487e8a
fld qword [esp + 0x68]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x487f28
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x44], 0
jne 0x487eae
add dword [esp + 0x5c], 0x50
add dword [esp + 0x14], 0x40
inc ebx
mov dword [esp + 0x4c], ebx
cmp ebx, dword [esp + 0x20]
jl 0x487c90
dec dword [esp + 0x48]
jns 0x487c4c
mov ecx, dword [esp + 0x60]
test ecx, 0x1000000
je 0x487ed1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x487ed1
mov dword [eax], 0
test ecx, 0x40000000
je 0x487ee1
mov eax, dword [esp + 0x10]
mov byte [eax + 8], 2
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
and dword [esp + 0x30], ecx
mov edi, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x14], edx
test ecx, 0x200f0000
je 0x487f47
mov ecx, dword [edi + 0x48]
mov dword [eax + 0x20], ecx
inc dword [edi + 0x48]
jmp 0x487f4e
fstp st(1)
fstp st(0)
mov ebx, dword [esp + 0x4c]
mov ecx, 0xa
lea esi, [esp + 0x98]
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], ebx
jmp 0x487e8e
mov dword [eax + 0x20], 0xffffffff
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp dword [eax + 0x168], ecx
jle 0x487f80
mov edx, dword [esp + 0x2c]
mov esi, dword [ebp + 0xc]
shl edx, 6
mov esi, dword [edx + esi + 0x28]
lea edx, [eax + 0x16c]
cmp dword [edx], esi
je 0x487fba
inc ecx
add edx, 4
cmp ecx, dword [eax + 0x168]
jl 0x487f70
xor eax, eax
xor edx, edx
fld1
mov ecx, dword [esp + 0x2c]
fld qword [esp + 0x68]
not eax
and dword [esp + 0x18], eax
fcom st(1)
mov eax, dword [esp + 0x24]
mov byte [eax + 0x34], cl
not edx
and dword [esp + 0x1c], edx
fnstsw ax
fstp st(1)
test ah, 1
jne 0x487fc8
fmul qword [edi + 0x1b0]
fstp qword [edi + 0x1b0]
jmp 0x487fca
mov eax, 1
xor edx, edx
call fcn.004cd450
jmp 0x487f84
fstp st(0)
mov edx, dword [ebp + 0xc]
shl ecx, 6
mov eax, dword [ecx + edx + 0x44]
test eax, eax
je 0x487fe2
test dword [esp + 0x60], 0xf0000
je 0x488041
mov eax, dword [esp + 0x40]
add dword [esp + 0x24], 0x50
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x20]
jl 0x487be0
xor esi, esi
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x44], esi
jne 0x488052
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x36], 0
jne 0x488052
mov eax, dword [esp + 0x30]
and eax, 0x4000000
je 0x488026
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x488026
mov dword [ecx], 0
test byte [ebp + 0x1c], 4
je 0x488079
test eax, eax
je 0x488079
mov ebx, dword [esp + 0x10]
and dword [ebx + 0x38], 0xff7fffff
mov byte [ebx + 6], 1
jmp 0x48807d
mov eax, dword [eax]
push eax
push 0x411118
push edi
call fcn.0042aa60
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
fld qword [eax + 0x28]
mov ecx, dword [ebp + 8]
push eax
fstp qword [ecx + 0x1b0]
push edx
call fcn.004878b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x488090
mov dword [esp + 0x30], eax
jmp 0x488096
mov dword [esp + 0x30], ecx
mov eax, ecx
cmp dword [eax + 0x15c], 0
jne 0x4880f4
push eax
call fcn.00474de0
mov edi, eax
add esp, 4
test edi, edi
je 0x4880f4
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0x20], esi
jg 0x4880c6
call fcn.00444400
test eax, eax
je 0x4880c6
mov esi, 1
jmp 0x4880e9
mov ecx, dword [edi + 4]
inc dword [edi + 0x1c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 1
mov edx, dword [esp + 0x30]
inc esi
mov dword [edx + 0x15c], esi
fld1
or eax, 0xffffffff
mov dword [esp + 0x18], eax
fstp qword [ebx + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x488464
mov dword [esp + 0x40], eax
jmp 0x488120
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax + 0x34]
fld qword [eax + 8]
mov edx, dword [ebp + 0xc]
shl ecx, 6
mov esi, dword [ecx + edx + 0x14]
lea edi, [ecx + edx + 8]
mov ecx, dword [edi + 0x20]
mov dword [eax + 0x1c], ecx
mov eax, 0xfff0bdc0
fmul qword [ebx + 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], eax
fstp qword [ebx + 0x30]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x488187
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x14]
xor eax, eax
mov dword [esp + 0x2c], eax
test edx, edx
jle 0x488187
mov ecx, dword [ecx + 0x10]
add ecx, 0xc
mov ebx, dword [esi + 0x44]
cmp dword [ecx], ebx
je 0x48817f
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x488170
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
test byte [esi + 0x22], 2
jne 0x4882fc
cmp dword [esi + 0x1c], 0
jne 0x4882fc
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x48827c
mov ebx, dword [esi + 0x34]
xor ecx, ecx
cmp ebx, ecx
je 0x4881cb
mov eax, dword [esp + 0x34]
lea ebx, [ebx]
cmp dword [ebx], eax
je 0x4881cb
mov ebx, dword [ebx + 0x18]
cmp ebx, ecx
jne 0x4881c0
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x44], edx
cmp dword [eax + 0x20], esi
jg 0x4881f8
mov edi, eax
call fcn.00444400
test eax, eax
je 0x4881f4
mov eax, 1
jmp 0x48821f
mov eax, edi
xor ecx, ecx
inc dword [eax + 0x1c]
mov eax, dword [eax + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x44]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x87
mov eax, esi
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
test esi, esi
je 0x4882fc
cmp byte [edi + 0x36], 0
jne 0x4882fc
test eax, eax
jns 0x488244
mov eax, ecx
mov eax, dword [eax + 0x1c]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.00444a40
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x48826d
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4882fc
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x4882fc
test ecx, 0x800000
jne 0x4882e7
test byte [ebp + 0x1c], 0x10
jne 0x4882e7
xor edx, edx
cmp byte [ebx + 6], dl
setne dl
add edx, 0x27
push edx
push esi
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [ebp + 8]
call fcn.00469da0
add esp, 0x10
cmp byte [ebx + 6], 0
jne 0x4882fc
cmp dword [esi + 8], 0x40
jge 0x4882fc
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x4882ce
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x4882c1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x1c]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.00444b80
add esp, 8
jmp 0x4882fc
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.0045d5f0
add esp, 0x10
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, 0x20000000
je 0x488333
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.00484310
add esp, 0x18
jmp 0x488408
test eax, 0xf0000
je 0x488408
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.00462850
mov edx, dword [esi + 0x28]
mov ebx, dword [edi + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x1c]
add esp, 8
mov dword [esp + 0x44], edx
cmp dword [eax + 0x20], esi
jg 0x488380
mov edi, eax
call fcn.00444400
test eax, eax
je 0x48837e
mov eax, 1
jmp 0x4883af
mov eax, edi
mov edx, dword [eax + 4]
inc dword [eax + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x27
mov eax, esi
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
xor ebx, ebx
cmp esi, ebx
je 0x4883fa
cmp byte [edi + 0x36], bl
jne 0x4883fa
cmp eax, ebx
jge 0x4883cb
mov eax, dword [ecx + 0x1c]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.00444a40
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x4883f1
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x488408
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x488408
mov ecx, dword [esp + 0x30]
mov eax, 0xfffffff0
call fcn.00444a40
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
push ecx
call fcn.00462240
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 4]
mov eax, dword [edx]
add esp, 4
xor ecx, ecx
test eax, eax
jle 0x488441
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x20]
add edx, 4
cmp dword [edx], esi
je 0x4884eb
inc ecx
add edx, 4
cmp ecx, eax
jl 0x488431
xor eax, eax
xor edx, edx
add dword [esp + 0x24], 0x50
mov ebx, dword [esp + 0x10]
not eax
and dword [esp + 0x18], eax
not edx
and dword [esp + 0x1c], edx
dec dword [esp + 0x40]
jne 0x488120
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x10], ecx
cmp byte [edx + 0x36], 0
jne 0x488052
or ebx, 0xffffffff
xor esi, esi
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x20], esi
jle 0x4884e0
mov edi, dword [esp + 0x10]
add edi, 0x64
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [edi + 8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push esi
lea edx, [edi - 0x2c]
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.004861a0
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 0x14
push ecx
push ebx
push edx
push esi
push eax
call fcn.00486400
mov ecx, dword [edi]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
inc esi
add esp, 0x14
add edi, 0x50
mov ebx, eax
mov dword [edx + 0x14], ecx
cmp esi, dword [esp + 0x20]
jl 0x488492
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
xor edx, edx
call fcn.004cd450
jmp 0x488445