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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
xor eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], eax
or eax, 0xffffffff
push esi
mov esi, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x58], esi
push edi
mov edi, edx
mov dword [esp + 0x78], eax
cmp dword [esi + 0x24], 0
mov dword [esp + 0x74], eax
mov byte [esp + 0x13], al
mov byte [esp + 0x23], al
mov dword [esp + 0x60], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi]
mov dword [esp + 0x68], edi
mov dword [esp + 0x50], eax
jne 0x49d215
cmp byte [eax + 0x51], 0
jne 0x49d215
mov ecx, dword [ebp + 8]
mov dword [esp + 0x54], 0
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x49c21c
test dword [ecx + 4], 0x200
je 0x49c21c
cmp dword [ecx + 0x34], 0
jne 0x49c21c
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x60], edx
mov edx, ecx
mov dword [ecx + 0x1c], 0
mov ecx, eax
push 1
call fcn.004a54e0
add esp, 4
mov dword [esp + 0xc], 0
mov edx, edi
mov ecx, esi
call fcn.00494b30
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x49c5f5
mov ecx, dword [edi + 0x48]
mov edx, 0xffff8000
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x49c263
mov eax, dword [esp + 0x50]
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x49c263
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x49c257
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x50]
mov ecx, edx
add ecx, ecx
mov edx, 0x12
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, esi
push 0
push dword [edi]
call fcn.0048d290
add esp, 0xc
test eax, eax
jne 0x49c5f5
mov eax, dword [edi + 0x24]
mov edx, edi
shr eax, 7
mov ecx, esi
and eax, 0xffffff01
mov dword [esp + 0x64], eax
lea eax, [esp + 0x70]
push eax
push 0
push 0x7d
call fcn.004b0f20
add esp, 0xc
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0xc]
mov edx, edi
mov ecx, esi
mov dword [esp + 0x88], eax
call fcn.00490910
test eax, eax
jne 0x49c5f5
push dword [esp + 0x70]
mov edx, edi
mov ecx, esi
call fcn.00494c40
add esp, 4
test eax, eax
jne 0x49c5f5
mov ecx, esi
call fcn.004a8600
mov dword [esp + 8], eax
test eax, eax
je 0x49c5f5
cmp byte [esi + 0x12], 0
jne 0x49c30a
or dword [eax + 0x98], 0x10
cmp dword [esp + 0xc], 0
jne 0x49c31f
cmp dword [esp + 0x84], 0
jne 0x49c31f
xor edx, edx
jmp 0x49c324
mov edx, 1
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00493710
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x49c357
push dword [esp + 0x1c]
mov edx, edi
mov ecx, esi
push dword [ebp + 0x10]
push dword [esp + 0x14]
call fcn.0049f7f0
add esp, 0xc
test eax, eax
jne 0x49d1a7
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edi
call fcn.0049bd80
mov ecx, dword [esi + 0x2c]
add esp, 4
mov dword [esp + 0x7c], eax
lea eax, [ecx + 1]
mov edx, eax
mov dword [esp + 0x6c], eax
movsx eax, word [edi + 0x2a]
inc eax
mov dword [esp + 0x28], edx
add eax, ecx
mov dword [esi + 0x2c], eax
cmp dword [edi + 0x38], 0
je 0x49c395
lea edx, [ecx + 2]
inc eax
mov dword [esp + 0x28], edx
mov dword [esi + 0x2c], eax
test dword [edi + 0x24], 0x440
lea eax, [edx + 1]
mov edx, dword [ebp + 0xc]
sete byte [esp + 0x1b]
mov dword [esp + 0x4c], eax
test edx, edx
je 0x49c4ce
xor ecx, ecx
cmp dword [edx + 4], ecx
jle 0x49c3d0
nop word [eax + eax]
mov eax, dword [edx]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edx + 4]
jl 0x49c3c0
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [edx + 4], ecx
jle 0x49c4ce
mov edx, dword [esp + 0x24]
movsx eax, word [edx + 0x2a]
xor edi, edi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x49c47e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [eax + ecx*8]
mov eax, dword [edx + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
nop dword [eax + eax]
mov edx, dword [eax]
mov ecx, dword [ecx]
call fcn.0044ee40
test eax, eax
je 0x49c439
mov eax, dword [esp + 0x40]
inc edi
mov ecx, dword [esp + 0x44]
add eax, 0x14
mov dword [esp + 0x40], eax
cmp edi, dword [esp + 0x34]
jl 0x49c410
mov edx, dword [esp + 0x24]
jmp 0x49c47a
mov eax, dword [esp + 0x44]
xor ecx, ecx
cmp dword [esp + 0x14], edi
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edi
movzx eax, byte [esp + 0x1b]
cmove ecx, eax
movsx eax, word [edx + 0x28]
mov byte [esp + 0x1b], cl
cmp edi, eax
mov ecx, dword [esp + 0x30]
cmove ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], ecx
lea ecx, [edi + edi*4]
test byte [eax + ecx*4 + 0x10], 0x60
jne 0x49c5e1
mov ecx, dword [esp + 0x14]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x49c4b9
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx + edi*8]
call fcn.00482c90
test eax, eax
je 0x49c69f
cmp byte [esp + 0x64], 0
jne 0x49c69f
mov edx, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x30], ecx
mov byte [esp + 0x1b], 0
mov eax, dword [ebp + 0xc]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 4]
jl 0x49c3e3
mov edi, dword [esp + 0x24]
cmp dword [esp + 0xc], 0
je 0x49c796
mov ecx, dword [esp + 8]
inc dword [esi + 0x2c]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x44], eax
inc eax
push eax
push 0
push edx
mov edx, 0xd
call fcn.0046aa80
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dl, byte [esp + 0x1b]
mov ecx, esi
mov dword [esp + 0x94], eax
xor eax, eax
test dl, dl
mov byte [esp + 0x90], 0xd
mov edx, dword [esp + 0xc]
cmovne eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], eax
movsx eax, word [edi + 0x2a]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa8], 0
call fcn.004ad6e0
mov ecx, dword [esp + 0xa0]
add esp, 4
mov dword [esp + 0x3c], ecx
test eax, eax
jne 0x49c5f5
mov eax, dword [esp + 0x50]
cmp byte [eax + 0x51], 0
jne 0x49c5f5
cmp dword [esi + 0x24], 0
jne 0x49c5f5
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 8]
call fcn.0046b1d0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 8]
call fcn.0046b520
cmp dword [esp + 0x84], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
jne 0x49c6c4
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edi
call fcn.0049baa0
add esp, 4
test eax, eax
jne 0x49c6c4
mov eax, dword [esp + 0x94]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x54], eax
jmp 0x49c7e4
lea ecx, [edi + edi*4]
push dword [eax + ecx*4]
push str.misuse_of_aggregate:__s__
push esi
call fcn.0044ed00
add esp, 0xc
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x50]
mov ecx, esi
mov edx, dword [esp + 0x68]
call fcn.00492f90
mov eax, dword [esp + 0x60]
test eax, eax
je 0x49c619
mov edx, eax
mov ecx, esi
call fcn.00482600
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49c66c
mov edx, dword [eax]
test edx, edx
je 0x49c630
mov ecx, esi
call fcn.00482600
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 4]
test edx, edx
je 0x49c641
mov ecx, esi
call fcn.00481520
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
test edx, edx
je 0x49c652
mov ecx, esi
call fcn.00482600
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x49c663
mov ecx, esi
call fcn.00481520
mov eax, dword [ebp + 0x14]
mov edx, eax
mov ecx, esi
call fcn.0044b7f0
test edi, edi
je 0x49c67e
push 1
mov edx, edi
mov ecx, esi
call fcn.004a54e0
add esp, 4
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.00492be0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x49c699
mov edx, eax
mov ecx, esi
call fcn.0044b7f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax + edi*8]
push 0
push dword [esp + 0x70]
push 0x63ca30
push esi
call fcn.0044ed00
add esp, 0x14
mov byte [esi + 0x11], 1
jmp 0x49c5f5
mov edx, dword [esi + 0x28]
mov ecx, esi
mov byte [esp + 0x13], 1
mov dword [esp + 0x38], edx
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
call fcn.00488590
mov edi, eax
call fcn.00488590
push dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
push edx
mov edx, 0x64
mov dword [esp + 0x24], eax
call fcn.0046abb0
mov eax, dword [esp + 0x9c]
mov edx, 0xe
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x60], eax
call fcn.0046ab50
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov edx, 0x5b
mov esi, eax
push edi
push dword [esp + 0x38]
push dword [esp + 0x44]
call fcn.0046aa80
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov edx, 0x78
push dword [esp + 0x1c]
push dword [esp + 0x3c]
call fcn.0046abb0
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, 0x79
push edi
push dword [esp + 0x48]
call fcn.0046aa80
mov ecx, dword [esp + 0x1c]
add esp, 0x14
mov edx, esi
call fcn.0046ac20
mov ecx, dword [esp + 8]
mov edx, esi
call fcn.0046b520
mov esi, dword [esp + 0x5c]
mov edx, edi
mov ecx, esi
call fcn.004885b0
mov edx, dword [esp + 0x1c]
call fcn.004885b0
mov edi, dword [esp + 0x34]
jmp 0x49c7e4
mov eax, dword [esp + 0x60]
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x90], esi
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x49c7de
mov edi, dword [eax]
lea ecx, [esp + 0x90]
mov edx, eax
mov dword [esp + 0x34], edi
call fcn.00480200
test eax, eax
jne 0x49c5f5
jmp 0x49c7e4
xor edi, edi
mov dword [esp + 0x34], edi
cmp dword [ebp + 0xc], 0
jne 0x49c84b
test edi, edi
mov edi, dword [esp + 0x24]
jle 0x49c84f
movsx ecx, word [edi + 0x28]
mov dword [esp + 0x30], ecx
test ecx, ecx
js 0x49c84f
test byte [edi + 0x24], 0x60
je 0x49c84f
lea edx, [ecx - 1]
test edx, edx
js 0x49c84f
mov eax, dword [edi + 4]
lea esi, [edx + 1]
lea esi, [edx + esi*4]
lea esi, [eax + esi*4]
nop word [eax + eax]
mov ax, word [esi]
lea esi, [esi - 0x14]
and ax, 0x60
movzx ecx, ax
mov eax, dword [esp + 0x30]
dec eax
test cx, cx
cmove eax, dword [esp + 0x30]
sub edx, 1
mov ecx, eax
mov dword [esp + 0x30], ecx
jns 0x49c820
mov esi, dword [esp + 0x5c]
jmp 0x49c84f
mov edi, dword [esp + 0x24]
movsx eax, word [edi + 0x2a]
test eax, eax
jle 0x49c88a
mov edx, dword [edi + 4]
mov esi, eax
add edx, 0x10
xor ecx, ecx
mov ax, word [edx]
lea edx, [edx + 0x14]
and ax, 0x62
inc ecx
movzx eax, ax
test ax, ax
cmove ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
sub esi, 1
jne 0x49c861
mov esi, dword [esp + 0x5c]
movsx eax, word [edi + 0x2a]
jmp 0x49c88c
xor ecx, ecx
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x49c8bc
mov edx, dword [esp + 0x34]
test edx, edx
je 0x49c8dc
sub eax, ecx
cmp edx, eax
je 0x49c8dc
push edx
push eax
push 0
push dword [esp + 0x74]
push 0x63ca50
push esi
call fcn.0044ed00
add esp, 0x18
jmp 0x49c5f5
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x34]
cmp edx, eax
je 0x49c8dc
push eax
push edx
push 0x63ca84
push esi
call fcn.0044ed00
add esp, 0x10
jmp 0x49c5f5
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
or eax, ecx
je 0x49c919
cmp byte [esi + 0x12], 0
jne 0x49c919
cmp dword [esi + 0x78], 0
jne 0x49c919
inc dword [esi + 0x2c]
mov edx, 0x45
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 8]
push eax
push 0
mov dword [esp + 0x94], eax
call fcn.0046abb0
add esp, 8
cmp dword [esp + 0x88], 0
jne 0x49c9a5
lea eax, [esp + 0x80]
mov edx, edi
push eax
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x61
call fcn.0049f4c0
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x44], eax
push 0
lea eax, [eax*4 + 8]
push eax
call fcn.0044ba80
add esp, 0x20
mov dword [esp + 0x58], eax
test eax, eax
je 0x49c5f5
mov edx, dword [edi + 8]
xor ecx, ecx
cmp dword [esp + 0x2c], ecx
jle 0x49c998
inc dword [esi + 0x2c]
mov edi, dword [esp + 0x58]
mov eax, dword [esi + 0x2c]
mov dword [edi + ecx*4], eax
inc ecx
movzx eax, word [edx + 0x34]
add dword [esi + 0x2c], eax
mov edx, dword [edx + 0x14]
cmp ecx, dword [esp + 0x2c]
jl 0x49c976
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49ca21
cmp dword [edi + 0x38], 0
je 0x49c9be
push dword [edi]
push 0x63caa0
jmp 0x49c5ec
cmp dword [edi + 0xc], 0
je 0x49c9d7
push 0x63cad0
push esi
call fcn.0044ed00
add esp, 8
jmp 0x49c5f5
mov edx, dword [eax]
mov ecx, esi
call fcn.00491bd0
test eax, eax
jne 0x49c5f5
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
mov dword [ecx + 0x34], edx
cmp dword [eax], 0
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
je 0x49ca21
mov edx, dword [esp + 0x68]
mov ecx, esi
push eax
call fcn.004b4c80
add esp, 4
cmp byte [esp + 0x13], 0
mov ecx, dword [esp + 8]
je 0x49ca4e
push dword [esp + 0x38]
mov edx, 0x25
call fcn.0046ab50
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x74], eax
jmp 0x49ca96
cmp dword [esp + 0xc], 0
je 0x49ca96
push dword [esp + 0x54]
mov edx, 0xe
call fcn.0046ab50
mov dword [esp + 0x78], eax
add esp, 4
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
test eax, eax
js 0x49ca92
mov ecx, dword [esp + 0x3c]
mov edx, 0x4d
push dword [esp + 0x28]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0046abb0
add esp, 8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
cmp ax, word [edi + 0x2a]
jge 0x49cc34
mov dword [esp + 0x40], eax
jmp 0x49cac4
mov ecx, dword [esp + 8]
movsx eax, word [edi + 0x28]
mov esi, dword [esp + 0x5c]
cmp dword [esp + 0x1c], eax
jne 0x49cae2
push edx
mov edx, 0x49
call fcn.0046ab50
jmp 0x49cc0e
mov eax, dword [edi + 4]
add eax, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x54], eax
movzx eax, word [eax + 0x10]
test al, 0x62
je 0x49cb40
inc dword [esp + 0x44]
test al, 0x20
je 0x49cb07
dec edx
jmp 0x49cc15
test al, 0x40
je 0x49cb26
test byte [esp + 0x70], 1
je 0x49cc15
push edx
mov edx, 0x49
call fcn.0046ab50
jmp 0x49cc0e
cmp dword [ebp + 0xc], 0
jne 0x49cb46
push edx
mov edx, dword [esp + 0x58]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.00486b90
jmp 0x49cc0e
cmp dword [ebp + 0xc], 0
je 0x49cb93
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jle 0x49cb7e
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, 4
cmp dword [ecx], edi
je 0x49cb72
inc eax
add ecx, 8
cmp eax, dword [esi + 4]
jl 0x49cb65
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jl 0x49cbb3
push edx
mov edx, dword [esp + 0x58]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.00486b90
jmp 0x49cc0e
cmp dword [esp + 0x34], 0
jne 0x49cbab
push edx
mov edx, dword [esp + 0x58]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.00486b90
jmp 0x49cc0e
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x44]
cmp byte [esp + 0x13], 0
je 0x49cbd3
mov ecx, dword [esp + 8]
push edx
push eax
push dword [esp + 0x40]
mov edx, 0x59
call fcn.0046aa80
add esp, 0xc
jmp 0x49cc11
cmp dword [esp + 0xc], 0
je 0x49cbfb
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x4c]
je 0x49cc15
push edx
add eax, ecx
mov edx, 0x4e
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046abb0
add esp, 8
jmp 0x49cc11
push edx
lea edx, [eax + eax*4]
mov ecx, esi
mov eax, dword [esp + 0x64]
mov edx, dword [eax + edx*4 + 4]
call fcn.00486af0
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc edx
movsx eax, word [edi + 0x2a]
inc ecx
add dword [esp + 0x40], 0x14
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jl 0x49cac0
dec dword [esi + 0x38]
test byte [esp + 0x70], 1
mov eax, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
je 0x49cde0
movsx edx, word [edi + 0x2a]
mov ecx, esi
inc edx
call fcn.004885d0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
push eax
test ecx, ecx
jns 0x49cc7a
mov ecx, dword [esp + 0xc]
mov edx, 0x45
push 0xffffffffffffffff
call fcn.0046abb0
add esp, 8
jmp 0x49cd28
cmp byte [esp + 0x17], 0
je 0x49cc99
push ecx
push dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, 0x59
call fcn.0046aa80
add esp, 0xc
jmp 0x49ccae
mov eax, dword [esp + 0x64]
lea edx, [ecx + ecx*4]
mov ecx, esi
mov edx, dword [eax + edx*4 + 4]
call fcn.00486af0
add esp, 4
push dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, 0x33
call fcn.0046ab50
mov ecx, dword [esp + 0xc]
add esp, 4
mov edx, 0x45
mov dword [esp + 0x2c], eax
push dword [esp + 0x14]
push 0xffffffffffffffff
call fcn.0046abb0
mov edx, dword [esp + 0x10]
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x6c]
mov dword [esp + 0x70], eax
test ecx, ecx
jns 0x49ccf4
lea ecx, [eax - 1]
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x49cd03
mov eax, 0x657384
jmp 0x49cd0c
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x70]
mov edx, 0xf
push dword [esp + 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
call fcn.0046ab50
add esp, 4
movsx eax, word [edi + 0x2c]
mov edx, 0x4d
mov ecx, dword [esp + 0x14]
dec eax
inc ecx
push eax
push ecx
push dword [esp + 0x54]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
call fcn.0046aa80
add esp, 0xc
test byte [edi + 0x24], 0x60
je 0x49cd62
mov edx, dword [esp + 0x2c]
mov ecx, esi
push edi
call fcn.0049bbb0
add esp, 4
cmp dword [esp + 0x88], 0
jne 0x49cd7e
push dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.0049b9c0
add esp, 4
push dword [esp + 0x3c]
movsx eax, word [edi + 0x2a]
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
sub ecx, eax
dec ecx
push ecx
push edi
push 1
push 0
push 0x7d
mov ecx, esi
call fcn.004b1820
movsx eax, word [edi + 0x2a]
add esp, 0x1c
inc eax
cmp eax, 1
jne 0x49cdd1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49cde0
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x49cde0
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
jmp 0x49cde0
cmp eax, dword [esi + 0x1c]
jle 0x49cde0
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
cmp dword [esp + 0x88], 0
jne 0x49d08c
cmp dword [edi + 0x38], 0
je 0x49ce0b
push dword [esp + 0x6c]
mov ecx, dword [esp + 0xc]
mov edx, 0x48
push 0
call fcn.0046abb0
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
js 0x49cee3
cmp byte [esp + 0x13], 0
je 0x49ce3a
push dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov edx, 0x59
push eax
push dword [esp + 0x40]
call fcn.0046aa80
add esp, 0xc
jmp 0x49ce69
cmp dword [esp + 0xc], 0
jne 0x49ce69
mov edx, dword [esp + 0x60]
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 + 4]
cmp byte [edx], 0x77
jne 0x49ce5b
cmp dword [edi + 0x38], 0
je 0x49cef0
push dword [esp + 0x28]
mov ecx, esi
call fcn.00486af0
add esp, 4
cmp dword [edi + 0x38], 0
mov ecx, dword [esp + 8]
jne 0x49ceb4
push dword [esp + 0x28]
mov edx, 0x33
call fcn.0046ab50
mov ecx, dword [esp + 0xc]
add esp, 4
mov edx, 0x78
mov esi, eax
push dword [esp + 0x7c]
push dword [esp + 0x2c]
push dword [esp + 0x50]
call fcn.0046aa80
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov edx, esi
call fcn.0046b520
mov esi, dword [esp + 0x5c]
jmp 0x49cecc
mov eax, dword [ecx + 0x6c]
mov edx, 0x32
add eax, 2
push eax
push dword [esp + 0x2c]
call fcn.0046abb0
add esp, 8
push dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov edx, 0xf
call fcn.0046ab50
add esp, 4
jmp 0x49cf2b
cmp dword [edi + 0x38], 0
jne 0x49cf14
cmp byte [esp + 0x64], 0
jne 0x49cf14
push dword [esp + 0x7c]
mov ecx, dword [esp + 0xc]
mov edx, 0x78
push dword [esp + 0x2c]
push dword [esp + 0x50]
call fcn.0046aa80
add esp, 0xc
mov byte [esp + 0x23], 1
jmp 0x49cf2b
push dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov edx, 0x48
push 0
call fcn.0046abb0
add esp, 8
push dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov ecx, esi
call fcn.0049bf90
add esp, 4
test byte [edi + 0x24], 0x60
je 0x49cf55
mov edx, dword [esp + 0x4c]
mov ecx, esi
push edi
call fcn.0049bbb0
add esp, 4
cmp dword [edi + 0x38], 0
je 0x49cfec
mov edi, dword [edi + 0x40]
test edi, edi
je 0x49cf7b
mov eax, dword [esp + 0x50]
nop word [eax + eax]
cmp dword [edi], eax
je 0x49cf7b
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x49cf70
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.004b6ff0
mov ecx, dword [esp + 8]
mov edx, 0xa
push 0xfffffffffffffff4
push edi
mov edi, dword [esp + 0x2c]
push dword [esp + 0x74]
movsx eax, word [edi + 0x2a]
add eax, 2
push eax
push 1
call fcn.0046aea0
mov eax, dword [esp + 0x1c]
add esp, 0x14
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jle 0x49cfd9
mov edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
cmp dword [ebp + 0x10], 0xb
mov eax, dword [eax + 0x68]
movzx edx, dx
mov dword [esp + 0x64], 2
cmove edx, dword [esp + 0x64]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0x74]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x49d08c
push dword [ebp + 0x14]
lea eax, [esp + 0x68]
mov edx, edi
push 0
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ecx, esi
push dword [ebp + 0x10]
shr eax, 0x1f
xor al, 1
movzx eax, al
push eax
push 0
push dword [esp + 0x88]
push dword [esp + 0xa0]
push dword [esp + 0x6c]
push dword [esp + 0x80]
call fcn.0049d260
add esp, 0x2c
mov edx, edi
mov ecx, esi
push 0
push 0
push dword [esp + 0x74]
push 0
call fcn.0049a750
add esp, 0x10
cmp dword [esp + 0x64], 0
je 0x49d05f
mov eax, dword [esp + 8]
cmp dword [eax + 0xd8], 0
je 0x49d05f
xor eax, eax
jmp 0x49d064
mov eax, 1
push eax
movzx eax, byte [esp + 0x27]
mov edx, edi
push eax
push 0
push dword [esp + 0x64]
mov ecx, esi
push dword [esp + 0x7c]
push dword [esp + 0x94]
push dword [esp + 0x60]
call fcn.0049f210
add esp, 0x1c
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x49d0ab
mov ecx, dword [esp + 8]
mov edx, 0x52
push 1
push eax
call fcn.0046abb0
add esp, 8
mov edx, dword [esp + 0x84]
test edx, edx
je 0x49d0dc
push dword [esp + 0x3c]
movsx eax, word [edi + 0x2a]
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x54]
sub ecx, eax
sub ecx, 2
push ecx
push edi
push 2
push 0
push 0x7d
mov ecx, esi
call fcn.004b1820
add esp, 0x1c
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x3c]
not edx
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49d0fe
push edx
mov edx, edi
call fcn.0046b240
add esp, 4
jmp 0x49d107
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp byte [esp + 0x13], 0
je 0x49d166
push dword [esp + 0x74]
mov edx, 5
mov ecx, edi
push dword [esp + 0x3c]
call fcn.0046abb0
mov ecx, dword [esp + 0x80]
add esp, 8
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x49d136
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x49d145
mov eax, 0x657384
jmp 0x49d14e
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
push dword [esp + 0x38]
mov dword [eax + 8], edx
mov ecx, edi
mov edx, 0x74
call fcn.0046ab50
add esp, 4
jmp 0x49d1ab
cmp dword [esp + 0xc], 0
je 0x49d1ab
mov edx, dword [esp + 0x74]
mov ecx, edi
call fcn.0046ac20
mov ecx, dword [esp + 0x78]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x49d186
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x49d198
mov eax, 0x657384
mov dword [eax + 8], edx
jmp 0x49d1ab
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x49d1ab
mov edi, dword [esp + 8]
cmp byte [esi + 0x12], 0
jne 0x49d1c4
cmp dword [esi + 0x78], 0
jne 0x49d1c4
cmp dword [esi + 0x70], 0
je 0x49d1c4
mov ecx, esi
call fcn.0049c000
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x49c5f5
push 1
push eax
mov edx, 0x50
mov ecx, edi
call fcn.0046abb0
add esp, 8
mov edx, 1
mov ecx, edi
call fcn.0046cb90
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x49c5f5
mov ecx, dword [edi + 0x74]
mov edx, 0x63cae8
push 0
push 1
push 0xffffffffffffffff
call fcn.00469e00
jmp 0x49c5f2
mov edi, dword [ebp + 8]
jmp 0x49c5f9