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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x51d06c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], eax
movlpd qword [esp + 0x78], xmm0
test edi, edi
je 0x49c1df
xor ecx, ecx
cmp dword [edi], 0x40
cmovge edi, ecx
mov dword [esp + 0x38], edi
mov al, byte [eax + 0x44]
mov ecx, dword [ebp + 0x14]
and al, 0x10
mov byte [esp + 0x4f], al
mov eax, ecx
and eax, 0xfeff
mov dword [esp + 0x70], edi
cmp byte [esp + 0x4f], 0
movzx edx, ax
movzx eax, cx
cmove edx, eax
movzx eax, dx
mov ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x49c241
push 0x40
push 0x51510c
push dword [esp + 0x1c]
call fcn.004294b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
test al, 0x20
mov eax, 1
push 0
cmovne ecx, eax
mov dword [esp + 0x48], ecx
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x30]
shl eax, 4
mov dword [esp + 0x2c], eax
add eax, 0x2f7
and eax, 0xfffffff8
mov dword [esp + 0x28], eax
add eax, 0x48
push eax
call fcn.00426530
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x49], 0
je 0x49c312
test ecx, ecx
je 0x49c7b9
cmp dword [eax + 0x1d8], 0
je 0x49c2bb
mov edx, ecx
mov ecx, eax
call fcn.00426210
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
cmp ecx, dword [eax + 0x128]
jb 0x49c2f3
cmp ecx, dword [eax + 0x12c]
jae 0x49c2f3
mov eax, dword [eax + 0x124]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x124], ecx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
push ecx
call fcn.004261a0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x10], esi
mov esi, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [ecx], edx
mov dword [ecx + 8], edi
mov dword [ecx + 0x1c], 0xffffffff
mov dword [ecx + 0x18], 0xffffffff
mov byte [ecx + 0x2e], al
mov esi, dword [esi + 0xc]
mov edi, dword [esi + 0x3c]
lea eax, [edi + 1]
mov dword [esi + 0x3c], eax
lea eax, [edi - 1]
test edi, eax
jne 0x49c37a
mov edx, dword [esi + 0x40]
lea eax, [edi*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.004266f0
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [esp + 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49c388
mov dword [eax + edi*4], 0xffffffff
mov eax, dword [esp + 0x34]
not edi
mov word [ecx + 0x2c], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x18]
mov word [ecx + 0x14], ax
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], edi
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x28]
movups xmmword [ecx + 0x2f], xmm0
add eax, 0x48
movups xmmword [ecx + 0x3f], xmm0
push eax
mov byte [ecx + 0x4f], 0
add ecx, 0x2f0
push 0
push ecx
mov dword [esp + 0x64], ecx
call fcn.004b1910
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x24]
lea edi, [esi + 0x50]
add ecx, esi
mov dword [esp + 0x68], esi
lea edx, [esi + 0x1e8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], edx
push 0x2c
lea eax, [ecx + 0x38]
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
lea eax, [edi + 0x18]
mov dword [edx + 4], 0
mov ecx, edi
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], edi
mov dword [esp + 0x70], edi
mov dword [edi], esi
mov byte [edi + 9], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], eax
call fcn.004968b0
add esp, 4
cmp dword [esp + 0x44], 0
jne 0x49c491
mov eax, dword [esp + 0x38]
test eax, eax
je 0x49c467
mov al, byte [eax]
mov byte [esi + 0x2f], al
test dword [esp + 0x34], 0x100
je 0x49c475
mov byte [esi + 0x33], 1
push 0x515128
push 0
push dword [esp + 0x1c]
call fcn.00445d60
mov ecx, dword [esp + 0x28]
add esp, 0xc
jmp 0x49c615
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add edi, 0x18
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edi
nop dword [eax + eax]
mov ecx, dword [edx + 4]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4 + 8], eax
inc dword [edx + 4]
test byte [edi + 0x18], 4
je 0x49c5f5
mov ecx, dword [edi + 0x30]
mov eax, dword [edi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x49c5f5
xor esi, esi
mov dword [esp + 0x24], esi
cmp dword [ecx], esi
jle 0x49c5f5
add ecx, 4
mov edi, esi
mov dword [esp + 0x30], ecx
movsx edx, word [eax + 0x2a]
cmp esi, edx
jge 0x49c5d9
mov eax, dword [eax + 4]
mov ecx, esi
shl ecx, 4
add eax, 0xf
add eax, ecx
nop dword [eax]
test byte [eax], 2
jne 0x49c51d
inc esi
add eax, 0x10
cmp esi, edx
jl 0x49c510
mov eax, dword [esp + 0x48]
cmp esi, edx
jge 0x49c5d9
mov eax, dword [esp + 0x14]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00426530
mov edi, eax
add esp, 8
test edi, edi
je 0x49c5ed
push 0x34
push 0
push edi
call fcn.004b1910
mov edx, dword [esp + 0x3c]
or eax, 0xffffffff
mov word [edi + 0x22], ax
add esp, 0xc
mov eax, dword [esp + 0x20]
mov byte [edi], 0x9e
mov dword [edi + 0x18], 1
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x48]
mov word [edi + 0x20], si
inc esi
mov dword [edi + 0x2c], eax
mov edx, dword [edx]
test edx, edx
je 0x49c597
mov eax, dword [esp + 0x14]
push 0
push 0
mov ecx, dword [eax]
call fcn.0045bf40
add esp, 8
jmp 0x49c599
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, 0x35
push eax
push edi
call fcn.0045b780
mov ecx, dword [esp + 0x58]
mov edx, eax
push 1
call fcn.00494830
mov eax, dword [esp + 0x60]
add esp, 0xc
mov edi, dword [esp + 0x24]
add dword [esp + 0x30], 0x18
inc edi
mov dword [esp + 0x24], edi
cmp edi, dword [eax]
mov eax, dword [esp + 0x48]
jl 0x49c4f3
jmp 0x49c5ed
push edi
push dword [eax]
push 0x515090
push dword [esp + 0x20]
call fcn.004294b0
add esp, 0x10
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add edi, 0x48
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
cmp eax, dword [ecx]
jl 0x49c4b0
mov edi, dword [esp + 0x50]
mov esi, dword [edi + 0xc]
sub esi, 1
js 0x49c634
nop dword [eax]
push esi
mov edx, edi
call fcn.00495b60
mov ecx, dword [esp + 0x20]
add esp, 4
sub esi, 1
jns 0x49c620
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x49], 0
jne 0x49c79d
cmp dword [edi + 0xc], 0
mov dword [esp + 0x28], 0
jle 0x49c6fd
xor edi, edi
mov esi, dword [esp + 0x50]
mov esi, dword [esi + 0x14]
add esi, edi
test byte [esi + 0xa], 2
jne 0x49c6e4
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x49c6e4
cmp dword [esp + 0x44], eax
je 0x49c6c8
mov edx, dword [esi]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x98], eax
mov byte [esp + 0x94], 1
mov dword [esp + 0x84], 0x49c150
mov dword [esp + 0x88], 0x45cee0
test edx, edx
je 0x49c6c8
lea ecx, [esp + 0x80]
call fcn.00458220
cmp byte [esp + 0x94], 0
je 0x49c6e4
mov eax, dword [esp + 0x10]
push 0x10
push dword [eax + 0x24]
push dword [esi]
push dword [esp + 0x20]
call fcn.004616d0
add esp, 0x10
or word [esi + 0xa], 4
mov esi, dword [esp + 0x28]
add edi, 0x30
mov eax, dword [esp + 0x50]
inc esi
mov dword [esp + 0x28], esi
cmp esi, dword [eax + 0xc]
jl 0x49c656
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
and eax, 0x100
mov dword [esp + 0x54], eax
je 0x49c748
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edi
push dword [esp + 0x54]
call fcn.00497100
mov esi, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x49c733
mov byte [esi + 0x33], 1
jmp 0x49c74c
cmp dword [esp + 0x38], 0
jne 0x49c74c
mov eax, 0x80
mov dword [esi + 8], edi
or word [esi + 0x2c], ax
jmp 0x49c74c
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x44], 1
jne 0x49c760
lea ecx, [esp + 0x68]
call fcn.0049bf90
test eax, eax
jne 0x49c7cf
lea ecx, [esp + 0x68]
call fcn.0049ab50
test eax, eax
jne 0x49c79d
xor edx, edx
mov ecx, esi
call fcn.0049b690
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x49], 0
jne 0x49c79d
cmp dword [esi + 8], 0
je 0x49c7d9
movzx edx, word [esi + 0x48]
mov ecx, esi
inc dx
call fcn.0049b690
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x49], 0
je 0x49c7d3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x80], eax
mov edx, ecx
mov ecx, dword [esp + 0x2c]
call fcn.004983f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
cmp dword [esi + 8], 0
jne 0x49c7f0
test dword [ecx + 0x1c], 0x1000
je 0x49c7f0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x24], 0
jne 0x49c79d
cmp byte [ecx + 0x49], 0
jne 0x49c79d
cmp byte [esi + 0x2e], 2
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
jb 0x49c9d9
test edi, edi
je 0x49c9d9
mov eax, 0x100
test word [ecx + 0x44], ax
jne 0x49c9d9
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.00496b60
mov esi, edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x70]
mov edi, eax
mov dword [esp + 0x3c], edi
test edx, edx
je 0x49c865
mov ecx, dword [esp + 0x18]
call fcn.00496b60
or edi, eax
or esi, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x10]
movzx esi, byte [ecx + 0x2e]
dec esi
mov dword [esp + 0x38], esi
cmp esi, 1
jl 0x49c9d7
lea eax, [esi + esi*4]
shl eax, 4
add eax, 0x2f0
add eax, ecx
mov dword [esp + 0x24], eax
nop dword [eax]
mov edx, dword [eax + 0x40]
mov dword [esp + 0x64], edx
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 0x2c], 8
lea eax, [eax + ecx*8]
mov dword [esp + 0x60], eax
je 0x49c9b8
cmp word [esp + 0x54], 0
jne 0x49c8cc
test dword [edx + 0x24], 0x1000
je 0x49c9b8
mov eax, dword [edx + 8]
mov ecx, eax
mov edx, dword [edx + 0xc]
and ecx, edi
mov dword [esp + 0x20], eax
mov eax, edx
and eax, dword [esp + 0x28]
or ecx, eax
mov dword [esp + 0x18], edx
jne 0x49c9b8
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 0x14]
mov esi, edx
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
shl edi, 4
add edi, edx
cmp esi, edi
jae 0x49c938
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [esp + 0x20]
and eax, dword [esp + 0x18]
or ecx, eax
je 0x49c92b
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x49c934
mov ecx, dword [esp + 0x60]
movsx eax, word [eax + 0x24]
cmp eax, dword [ecx + 0x34]
jne 0x49c934
add esi, 0x30
cmp esi, edi
jb 0x49c904
jmp 0x49c938
cmp esi, edi
jb 0x49c9b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
not eax
and dword [esp + 0x48], eax
not ecx
and dword [esp + 0x30], ecx
cmp edx, edi
jae 0x49c970
mov esi, dword [esp + 0x64]
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [esi + 8]
and eax, dword [esi + 0xc]
or ecx, eax
je 0x49c969
or word [edx + 0xa], 4
add edx, 0x30
cmp edx, edi
jb 0x49c954
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
mov cl, byte [edi + 0x2e]
movzx edx, cl
lea eax, [edx - 1]
cmp esi, eax
je 0x49c9a5
mov ecx, dword [esp + 0x24]
sub edx, esi
lea eax, [edx + edx*4]
shl eax, 4
sub eax, 0x50
push eax
lea eax, [ecx + 0x50]
push eax
push ecx
call fcn.004b1390
mov cl, byte [edi + 0x2e]
add esp, 0xc
dec cl
dec dword [esp + 0x44]
mov byte [edi + 0x2e], cl
jmp 0x49c9b4
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
dec esi
sub eax, 0x50
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], eax
cmp esi, 1
jge 0x49c890
mov esi, dword [esp + 0x10]
jmp 0x49c9d9
mov esi, ecx
mov ecx, dword [esi]
movsx eax, word [esi + 0x48]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], 0
add dword [ecx + 0x80], eax
test dl, 4
je 0x49ca88
mov eax, dword [esi + 0x330]
mov ecx, dword [eax + 0x24]
test ecx, 0x1000
jne 0x49ca3d
mov dword [esp + 0x18], 0
test dl, 8
je 0x49ca88
mov dword [esp + 0x18], 0
test ecx, 0x400
jne 0x49ca88
test ecx, 0x2000
je 0x49ca3d
mov dword [esp + 0x18], 0
test dl, 0x10
je 0x49ca88
mov edx, dword [esp + 0x1c]
mov eax, ecx
and eax, 0x1000
mov dword [esp + 0x18], 0
neg eax
sbb al, al
add al, 2
mov byte [esi + 0x31], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x24], 0x20
jne 0x49ca8c
mov dword [esp + 0x18], 0
test cl, 0x40
je 0x49ca8c
mov eax, dword [esi + 0x330]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x34]
and eax, 8
mov dword [esp + 0x18], eax
jmp 0x49ca8c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jle 0x49cd0a
mov eax, dword [esp + 0x58]
add eax, 0x40
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
nop word [eax + eax]
movzx eax, byte [eax - 0x14]
mov edi, 0xfff0bdc0
lea eax, [eax + eax*8]
mov esi, dword [edx + eax*8 + 0x18]
lea edx, [edx + eax*8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], esi
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x49caea
mov eax, dword [esp + 0x2c]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x49caea
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x49cae2
test byte [esi + 0x24], 2
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
jne 0x49cc6d
cmp dword [esi + 0xc], 0
jne 0x49cc6d
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x49cb4b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49cb2b
mov ecx, dword [esp + 0x2c]
nop dword [eax]
cmp dword [eax], ecx
je 0x49cb2b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x49cb20
mov ecx, dword [esp + 0x40]
push 0xfffffffffffffff4
push eax
push 0
push 0
push dword [edx + 0x34]
mov edx, 0xa4
call fcn.00445cd0
add esp, 0x14
jmp 0x49cc69
cmp dword [esi + 0x38], 0
jne 0x49cc6d
test al, 0x40
jne 0x49cc54
test byte [esp + 0x34], 0x20
jne 0x49cc54
mov eax, dword [esp + 0x10]
mov ecx, 0x6d
cmp byte [eax + 0x31], 0
je 0x49cb8a
mov esi, dword [esp + 0x10]
mov ecx, 0x6e
mov eax, dword [edx + 0x34]
mov dword [esi + 0x18], eax
mov esi, dword [esp + 0x28]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push edi
call fcn.004766f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x31], 0
jne 0x49cc45
cmp word [esi + 0x2a], 0x40
jge 0x49cc45
test byte [esi + 0x24], 0x20
jne 0x49cc45
mov eax, dword [esp + 0x3c]
xor esi, esi
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov eax, edx
or eax, ecx
je 0x49cbde
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x49cbd1
mov edx, dword [esp + 0x40]
mov ecx, dword [edx]
cmp byte [ecx + 0x49], 0
je 0x49cc07
push esi
mov edx, 0xfffffffd
call fcn.00446480
mov edx, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x40]
call fcn.004462b0
jmp 0x49cc69
mov eax, dword [edx + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x49cc3e
mov ecx, dword [esp + 0x40]
mov edx, eax
push 0xfffffffffffffffd
push esi
call fcn.00446610
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esp + 0x40]
call fcn.004462b0
jmp 0x49cc69
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfd
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
call fcn.004462b0
jmp 0x49cc69
push dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.00467010
add esp, 0xc
mov ecx, dword [esp + 0x24]
test dword [ecx + 0x24], 0x200
je 0x49ccb4
mov eax, dword [esp + 0x28]
mov edx, 0x6d
mov esi, dword [ecx + 0x20]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], esi
test byte [eax + 0x24], 0x20
je 0x49cdf7
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x49cdf7
test cl, 0x20
je 0x49cdf7
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0x3c]
mov dword [ecx - 0x38], eax
mov esi, dword [esp + 0x14]
test edi, edi
js 0x49cce8
mov eax, dword [esi + 0x74]
mov edx, esi
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x54]
test esi, eax
jne 0x49cce8
bts esi, edi
mov dword [edx + 0x54], esi
cmp edi, 1
jne 0x49cce8
mov ecx, edx
call fcn.0046d5c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add eax, 0x50
sub dword [esp + 0x38], 1
mov dword [esp + 0x20], eax
jne 0x49cab0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x88]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x49], 0
jne 0x49c79d
xor edi, edi
test ecx, ecx
jle 0x49cde1
add esi, 0x31c
nop word [eax + eax]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x49cd87
mov ecx, dword [esp + 0x1c]
lea eax, [esi - 0x2c]
mov edx, dword [esp + 0x50]
push eax
movzx eax, byte [esi]
push dword [esp + 0x34]
push dword [esp + 0x50]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004973f0
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp byte [eax + 0x49], 0
jne 0x49c79d
push dword [esp + 0x34]
mov edx, dword [esp + 0x20]
lea eax, [esi - 0x2c]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00491260
mov eax, dword [esp + 0x48]
mov edx, edi
push dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x54]
mov eax, dword [eax + 0x88]
mov dword [esi - 0xc], eax
call fcn.004924d0
mov ecx, dword [esi - 0x14]
inc edi
mov dword [esp + 0x58], eax
add esp, 0x10
mov eax, dword [esp + 0x10]
add esi, 0x50
mov dword [esp + 0x30], edx
mov dword [eax + 0x20], ecx
cmp edi, dword [esp + 0x44]
jl 0x49cd40
mov esi, eax
mov ecx, dword [esp + 0xac]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x31], 0
je 0x49ce2d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x49ce1f
cmp eax, esi
je 0x49ce1f
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x49ce13
mov eax, dword [esp + 0x10]
mov edx, 0x6e
mov dword [eax + 0x1c], ecx
jmp 0x49ce54
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x49ce43
test cl, 0x20
je 0x49ce43
mov ecx, eax
mov edx, 0x6c
jmp 0x49ce56
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x14]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x28], eax
mov eax, ecx
mov esi, dword [esp + 0x20]
push edi
mov dword [esi - 0x38], eax
mov esi, dword [esp + 0x5c]
push dword [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004458d0
add esp, 0xc
mov edx, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004467b0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x24]
test al, 0xf
je 0x49ccb8
test eax, 0x8002
jne 0x49ccb8
mov eax, dword [esp + 0x10]
test byte [eax + 0x2c], 1
jne 0x49ccb8
cmp byte [eax + 0x33], 2
je 0x49ccb8
mov ecx, dword [esp + 0x40]
mov edx, 2
call fcn.004462b0
jmp 0x49ccb8