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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x100fc008]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x58], edx
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x50], ecx
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x38], eax
cmp dword [edi + 0x40], ecx
jne 0x1004a9d4
cmp byte [eax + 0x40], cl
jne 0x1004a9d4
mov ecx, edi
call fcn.10049790
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1004a9d4
mov eax, dword [edi]
xor esi, esi
xor edx, edx
test dword [eax + 0x18], 0x800000
je 0x10049b05
mov edx, ebx
mov ecx, edi
call fcn.10069e80
mov edx, eax
mov ecx, edx
test edx, edx
je 0x10049b23
nop dword [eax + eax]
cmp byte [ecx + 8], 0x6d
jne 0x10049b1c
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10049b10
xor eax, eax
mov ecx, edi
test esi, esi
cmovne eax, edx
mov edx, ebx
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
call fcn.100448b0
test eax, eax
jne 0x1004a9d4
cmp dword [esp + 0x40], eax
mov edx, ebx
mov ecx, edi
setne al
push eax
call fcn.10049820
add esp, 4
test eax, eax
jne 0x1004a9d4
mov edx, dword [ebx + 0x44]
mov ebx, 0xfff0bdc0
mov esi, dword [esp + 0x38]
test edx, edx
je 0x10049b8d
mov ecx, dword [esi + 0x14]
xor ebx, ebx
test ecx, ecx
jle 0x10049b8d
mov eax, dword [esi + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x10049b8d
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x10049b81
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov esi, dword [esp + 0x1c]
mov edx, 9
shl ecx, 4
mov dword [esp + 0x64], ecx
push dword [ecx + eax]
mov ecx, edi
push 0
push dword [esi]
call fcn.10040e00
add esp, 0xc
mov dword [esp + 0x24], eax
cmp eax, 1
je 0x1004a9d4
mov ecx, dword [esp + 0x58]
xor edx, edx
mov eax, dword [edi + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], edx
mov dword [ecx + 0x38], eax
inc dword [edi + 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x44]
test eax, eax
je 0x10049bf1
inc ecx
inc edx
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10049be1
mov dword [esp + 0x78], edx
cmp dword [esp + 0x68], 0
je 0x10049c16
mov eax, dword [edi + 0x1ec]
mov dword [esp + 0x8c], eax
mov eax, dword [esi]
mov dword [esp + 0x90], edi
mov dword [edi + 0x1ec], eax
jmp 0x10049c32
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x8c], eax
mov ecx, edi
call fcn.10061e50
mov esi, eax
test esi, esi
je 0x1004a9bc
cmp byte [edi + 0x12], 0
jne 0x10049c4d
or dword [esi + 0x58], 0x10
mov eax, dword [edi + 0x198]
mov edx, edi
test eax, eax
mov ecx, ebx
cmovne edx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x4c], edx
mov ecx, dword [edx + 0x14c]
test ecx, eax
jne 0x10049ca0
mov eax, dword [edx]
bts ecx, ebx
mov dword [edx + 0x14c], ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 0xc]
mov eax, dword [eax]
mov dword [edx + ebx*4 + 0x150], eax
cmp ebx, 1
jne 0x10049ca0
mov ecx, edx
call fcn.10047dc0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x148]
or byte [edx + 0x14], 1
bts eax, ebx
cmp dword [esp + 0x68], 0
mov dword [edx + 0x148], eax
je 0x10049ce0
push dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x60]
call fcn.100498b0
mov ecx, dword [esp + 0x34]
add esp, 8
mov eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], eax
jmp 0x10049ce4
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x94]
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], eax
call fcn.100355c0
test eax, eax
jne 0x1004a9bc
mov eax, dword [esp + 0x38]
test byte [eax + 0x18], 0x80
je 0x10049d96
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x10049d62
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x10049d96
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x24], 0
jne 0x10049f01
cmp dword [esp + 0x5c], 0
jne 0x10049f01
cmp dword [esp + 0x40], 0
jne 0x10049f01
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x2c], 0x10
jne 0x10049f01
mov eax, dword [edi]
test dword [eax + 0x18], 0x80000
je 0x10049e06
mov eax, ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [eax + 0x44]
mov edx, dword [eax]
add ecx, 0x38
call fcn.10008f70
add esp, 4
test eax, eax
je 0x10049df8
cmp dword [eax + 8], 0
jne 0x10049f01
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x10], 0
jne 0x10049f01
mov eax, dword [ecx]
mov edx, ebx
push eax
push 1
push dword [ecx + 0x20]
mov ecx, edi
call fcn.10040ea0
mov eax, dword [esp + 0x28]
add esp, 0xc
test byte [eax + 0x2c], 0x20
jne 0x10049e94
mov ecx, dword [eax]
mov eax, dword [eax + 0x20]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], ecx
cmp dword [eax + 0x54], edi
jg 0x10049e4e
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x10049e4e
mov edi, 1
jmp 0x10049e7e
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffe
push dword [esp + 0x44]
mov edx, edi
mov ecx, esi
call fcn.10022d20
mov eax, dword [esp + 0x24]
add esp, 8
mov edi, dword [eax + 8]
test edi, edi
je 0x1004a909
nop
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x10049ec5
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x10049ef5
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x10049ea0
jmp 0x1004a909
mov ebx, dword [esp + 0x1c]
test byte [ebx + 0x2c], 0x20
jne 0x10049f71
inc dword [edi + 0x48]
xor ebx, ebx
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x10049f45
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a043
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], bl
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
jmp 0x1004a043
mov ebx, dword [ebx + 8]
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x10049f94
nop dword [eax]
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x10049f90
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x10049f80
mov dword [esp + 0x48], ebx
movzx ecx, word [ebx + 0x32]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x3c], ecx
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x44], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], ecx
cmp dword [eax + 0x54], ecx
jg 0x10049fe2
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x10049fde
mov ecx, 1
mov dword [esp + 0x50], ecx
jmp 0x1004a01d
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 4], edx
movsx edx, bx
mov ebx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x39
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 8]
mov edx, ebx
push 0xfffffffffffffffa
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.10048840
add esp, 4
or edx, 0xffffffff
mov ecx, edi
push eax
call fcn.10022d20
mov edi, dword [esp + 0x3c]
add esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x58]
inc eax
push eax
push 0xc
push 0
push 0
push dword [esp + 0x6c]
call fcn.10078a90
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004a9bc
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 0x40]
mov al, byte [eax + 0x26]
mov byte [esp + 0x13], al
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
test byte [eax + 0x18], 0x80
je 0x1004a0e8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a0b4
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a0e8
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
je 0x1004a142
mov edx, dword [esp + 0x3c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], ecx
cmp ax, dx
jge 0x1004a138
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
mov edx, edi
add eax, ecx
push eax
mov eax, dword [ebx + 4]
movsx eax, word [eax + ecx*2]
mov ecx, esi
push eax
push dword [esp + 0x34]
call fcn.10039780
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x3c]
inc ecx
movsx eax, dx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x1004a101
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
jmp 0x1004a169
mov eax, dword [edi + 0x48]
mov ecx, edi
mov edx, dword [esp + 0x1c]
inc eax
push 0
push eax
push dword [esp + 0x34]
push 0xffffffffffffffff
call fcn.100398d0
add esp, 0x10
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x48]
jle 0x1004a169
mov dword [edi + 0x48], eax
cmp byte [esp + 0x13], 0
je 0x1004a28a
mov eax, dword [esp + 0x3c]
movzx ecx, ax
mov eax, dword [esp + 0x78]
add eax, 2
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
cdq
push edx
push eax
call fcn.10005020
mov ecx, eax
add esp, 8
mov dword [esp + 0x60], ecx
test ecx, ecx
jne 0x1004a1ad
mov ecx, dword [esp + 0x14]
call fcn.10079540
jmp 0x1004a9bc
mov eax, dword [esp + 0x78]
inc eax
push eax
push 1
push ecx
call fcn.100bd8d0
mov eax, dword [esp + 0x84]
add esp, 0xc
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x80]
test eax, eax
js 0x1004a1e3
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1004a1f1
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004a23b
cmp eax, dword [esi + 0x20]
jge 0x1004a23b
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea edi, [eax + ecx*4]
mov ecx, dword [esi]
call fcn.10022b20
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9a
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x34]
dec eax
cmp dword [esp + 0x50], eax
jne 0x1004a23b
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x70], edx
cmp dword [eax + 0x54], edx
jg 0x1004a266
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x1004a262
mov dword [esp + 0x70], 1
jmp 0x1004a3c6
mov edx, dword [esp + 0x70]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
jmp 0x1004a3b1
test ebx, ebx
je 0x1004a36c
inc dword [edi + 0x48]
mov edx, ebx
mov eax, dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
call fcn.100515b0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x80], eax
mov eax, edx
mov dword [esp + 0x20], edx
cmp dword [ecx + 0x54], edx
jg 0x1004a2e3
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x1004a2dc
mov eax, dword [esp + 0x3c]
mov edx, 1
cwde
jmp 0x1004a327
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x6c]
lea ecx, [edx + edx*4]
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x3c]
movsx ebx, bx
mov dword [esp + 0x20], ebx
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x84]
mov ecx, esi
call fcn.10022d20
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a357
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a3c6
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x6e
jmp 0x1004a3a5
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a392
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a3c6
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov byte [eax + ecx*4 + 3], 0
mov ecx, dword [esp + 0x14]
call fcn.10079540
cmp byte [esp + 0x13], 0
je 0x1004a45e
mov ecx, esi
call fcn.10022800
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x7c], eax
mov eax, edx
mov dword [esp + 0x20], edx
cmp dword [ecx + 0x54], edx
jg 0x1004a408
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a43d
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x20]
inc eax
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x70]
cmp edx, eax
jbe 0x1004a455
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x68], 0
jne 0x1004a48f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x34]
mov ecx, edi
push eax
push dword [esp + 0x68]
push dword [esp + 0x38]
push 0x37
call fcn.10055250
mov eax, dword [esp + 0x78]
add esp, 0x14
mov dword [esp + 0x4c], eax
cmp byte [esp + 0x13], 0
je 0x1004a574
mov ebx, dword [esp + 0x30]
mov eax, ebx
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
cmp byte [eax + ecx], 0
je 0x1004a517
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004a4cb
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x1004a4cb
mov ebx, 1
jmp 0x1004a4ff
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x44
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
mov edx, ebx
cwde
mov ecx, esi
push 0xfffffffffffffff2
push eax
call fcn.10022d20
add esp, 8
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x2c], 0x10
je 0x1004a708
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x1004a53f
mov eax, dword [esp + 0x38]
cmp dword [ebx], eax
je 0x1004a53f
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x1004a534
mov edx, ecx
mov ecx, edi
call fcn.1006f840
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x20], edx
cmp dword [eax + 0x54], edx
jg 0x1004a69e
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x1004a69a
mov edx, 1
jmp 0x1004a6d6
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x54]
test ebx, ebx
je 0x1004a639
mov ecx, edx
cmp eax, edx
jg 0x1004a5ab
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x1004a5a4
mov dword [esp + 0x28], 1
jmp 0x1004a5e2
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004a5fc
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a513
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x65
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1004a51b
mov dword [esp + 0x28], edx
cmp eax, edx
jg 0x1004a65d
mov ecx, esi
call fcn.100226d0
test eax, eax
je 0x1004a659
mov dword [esp + 0x28], 1
jmp 0x1004a513
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x81
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1004a51b
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x34]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff6
push ebx
mov ecx, esi
call fcn.10022d20
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x1004a6f5
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
mov eax, dword [edi + 0x198]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x1004a736
push dword [esp + 0x84]
cmp byte [edi + 0x12], 0
push 0xa
sete al
movzx eax, al
push eax
push dword [esp + 0x30]
push edx
push dword [esp + 0x60]
mov edx, ecx
mov ecx, edi
push ebx
push dword [esp + 0x5c]
call fcn.1004aa80
add esp, 0x20
cmp byte [esp + 0x13], 0
mov ecx, dword [esi + 0x18]
je 0x1004a763
mov ebx, dword [esp + 0x7c]
not ebx
test ebx, ebx
js 0x1004a757
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1004a757
mov eax, dword [esi + 0x20]
mov dword [edx + ebx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
jmp 0x1004a82c
cmp dword [esp + 0x48], 0
mov ebx, dword [esi + 0x20]
mov eax, dword [ecx + 0x54]
mov ecx, ebx
je 0x1004a7c2
cmp eax, ebx
jg 0x1004a788
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a80b
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 9
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [ecx + 8], eax
jmp 0x1004a80b
cmp eax, ebx
jg 0x1004a7d4
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a80b
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x20]
cmp edx, eax
jbe 0x1004a823
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x68], 0
jne 0x1004a90d
mov ebx, dword [esp + 0x1c]
test byte [ebx + 0x2c], 0x10
jne 0x1004a90d
cmp dword [esp + 0x48], 0
jne 0x1004a8a4
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x84], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a870
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a8a4
mov ecx, dword [esp + 0x84]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004a90d
mov edi, dword [esp + 0x4c]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004a8c9
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a8f9
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
inc edi
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1004a8b3
mov edi, dword [esp + 0x34]
cmp byte [edi + 0x12], 0
jne 0x1004a923
cmp dword [edi + 0x19c], 0
jne 0x1004a923
mov ecx, edi
call fcn.10051bf0
mov eax, dword [esp + 0x38]
test byte [eax + 0x18], 0x80
je 0x1004a9bc
cmp byte [edi + 0x12], 0
jne 0x1004a9bc
cmp dword [edi + 0x19c], 0
jne 0x1004a9bc
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1004a95e
mov ecx, esi
call fcn.100226d0
test eax, eax
jne 0x1004a992
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, esi
call fcn.10023d90
mov eax, dword [esi]
cmp byte [eax + 0x40], 0
jne 0x1004a9bc
mov ecx, dword [esi + 0x10]
mov edx, str.rows_deleted
push 0
push 1
push 0xffffffffffffffff
call fcn.10021c80
add esp, 0xc
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1004a9d4
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x1ec], ecx
mov edi, dword [esp + 0x38]
mov ecx, edi
mov edx, dword [esp + 0x58]
call fcn.10047720
mov edx, dword [esp + 0x5c]
mov ecx, edi
call fcn.10036770
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1004aa63
test edi, edi
je 0x1004aa5a
cmp dword [edi + 0x208], 0
je 0x1004aa21
mov edx, ecx
mov ecx, edi
call fcn.10004d70
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edi + 0x114]
jb 0x1004aa5a
cmp ecx, dword [edi + 0x118]
jae 0x1004aa5a
mov eax, dword [edi + 0x110]
mov dword [ecx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
push ecx
call fcn.10004cd0
add esp, 4
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret