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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push ebx
mov ebx, dword [eax]
push ebp
mov ebp, dword [ebx + 0xc]
push esi
mov esi, dword [eax + 0x1c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov dword [esp + 0x20], esi
lea esi, [ecx + eax + 0x30]
movzx ecx, byte [esi + 0x34]
mov eax, dword [eax + 8]
push edi
lea edi, [ecx*8]
sub edi, ecx
mov ecx, dword [eax + edi*8 + 0x20]
lea eax, [eax + edi*8 + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edi, eax
shr edi, 0x19
xor edx, edx
and edi, 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edi
test eax, 0x800000
je 0x49c0a7
test byte [esp + 0x6c], 0x40
mov dword [esp + 0x5c], 1
je 0x49c0ab
mov dword [esp + 0x5c], edx
mov eax, ebp
call fcn.00464650
mov dword [esp + 0x3c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov eax, ebp
call fcn.00464650
cmp byte [esi + 0x34], 0
mov dword [esp + 0x4c], eax
mov dword [esi + 0x2c], eax
jbe 0x49c12e
mov edx, dword [esp + 0x44]
test byte [edx + 0x15], 8
je 0x49c12e
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
mov dword [esi + 0x18], ecx
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], eax
jg 0x49c10a
mov edi, ebp
call fcn.00464340
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x49c12e
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edx, dword [ebp + 4]
inc dword [ebp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov edx, dword [esi]
test edx, 0x8000000
je 0x49c3a5
mov esi, dword [esi + 0x10]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
inc dword [ebx + 0x54]
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x38]
lea eax, [edx + 2]
cmp eax, ecx
mov dword [esp + 0x40], esi
mov esi, dword [ebx + 0x3c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], esi
jg 0x49c17b
add esi, eax
sub ecx, eax
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], ecx
jmp 0x49c18a
mov ecx, dword [ebx + 0x48]
lea esi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x68], esi
mov dword [ebx + 0x48], ecx
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x30], ecx
jl 0x49c1f8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
xor edi, edi
test eax, eax
jle 0x49c1eb
cmp dword [edx + edi*8], ecx
je 0x49c1b1
inc edi
cmp edi, eax
jl 0x49c1a5
jmp 0x49c1eb
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x30]
lea esi, [edx + eax + 1]
mov edx, dword [esp + 0x48]
lea ecx, [edi + edi*2]
mov eax, dword [edx + ecx*4 + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x1c]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*8]
mov eax, dword [eax + 0xc]
mov ecx, ebx
call fcn.00474e30
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp edi, eax
je 0x49c1f8
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jle 0x49c19f
mov edx, dword [esp + 0x40]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov eax, dword [edx + 0x14]
mov dword [esp + 0x5c], eax
jg 0x49c21a
mov edi, ebp
call fcn.00464340
mov ecx, dword [esp + 0x30]
test eax, eax
jne 0x49c246
mov eax, dword [ebp + 4]
inc dword [ebp + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x49c25d
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49c287
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 4]
inc dword [ebp + 0x1c]
dec ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x68]
inc ecx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xfffffffe
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jg 0x49c2bd
mov edi, ebp
call fcn.00464340
test eax, eax
je 0x49c2bd
mov esi, 1
jmp 0x49c2f0
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov byte [eax], 0x80
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push eax
push ebp
mov eax, esi
call fcn.00464ac0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x49c360
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
add edi, 8
add edx, 4
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
je 0x49c351
mov eax, dword [edi]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*8]
call fcn.0049b600
add dword [esp + 0x40], 8
add edi, 0xc
sub dword [esp + 0x48], 1
jne 0x49c330
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
mov byte [eax + 0x35], 0x83
mov dword [eax + 0x38], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x3c], edx
mov eax, dword [esp + 0x68]
push eax
mov eax, edi
mov esi, ebx
call fcn.00473920
add esp, 4
cmp edi, dword [ebx + 0x38]
jle 0x49c399
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], ecx
mov eax, ebx
call fcn.00473970
jmp 0x49cfd8
test edx, 0x1000
je 0x49c475
mov al, byte [ebx + 0x15]
test al, al
jne 0x49c3c0
inc dword [ebx + 0x48]
mov edi, dword [ebx + 0x48]
jmp 0x49c3cc
dec al
movzx edx, al
mov byte [ebx + 0x15], al
mov edi, dword [ebx + edx*4 + 0x18]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
push 0
push 3
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0xffffffffffffffff
push edx
push eax
mov dword [esp + 0x48], edi
call fcn.00498cc0
add esp, 0x1c
push edi
push esi
push eax
mov eax, ebx
call fcn.0049b6e0
mov ecx, dword [esi + 0x28]
mov esi, dword [ebp + 0x1c]
add esp, 0xc
cmp dword [ebp + 0x20], esi
mov ebx, eax
mov dword [esp + 0x30], ecx
jg 0x49c41b
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49c443
mov eax, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x30]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x15
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
push ebx
push edx
push esi
push 0x34
mov eax, ebp
call fcn.004643c0
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push esi
call fcn.00473820
mov eax, dword [esp + 0x30]
add esp, 0x18
mov byte [eax + 0x35], 0x89
mov ebx, edx
jmp 0x49cfd8
test edx, 0x2000
je 0x49c6bf
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 0
push 0x24
push ecx
push edx
push 0xffffffffffffffff
push esi
push eax
mov dword [esp + 0x4c], 0x89
mov dword [esp + 0x64], 0
call fcn.00498cc0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
add esp, 0x1c
push 0
push 0x18
push ecx
push edx
push 0xffffffffffffffff
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
push esi
push eax
call fcn.00498cc0
add esp, 0x1c
mov dword [esp + 0x38], eax
test edi, edi
je 0x49c4ef
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x68], 0
je 0x49c56b
mov ecx, dword [esp + 0x68]
mov edi, dword [ecx]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x5c]
push edx
mov esi, ebx
mov byte [esp + 0x38], 0x2f
mov byte [esp + 0x39], 0x2d
mov byte [esp + 0x3a], 0x2c
mov byte [esp + 0x3b], 0x2e
call fcn.00474db0
movzx edx, byte [edi]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
push esi
push eax
movzx eax, byte [esp + edx - 0x11]
push ecx
push eax
mov eax, ebp
call fcn.004643c0
push esi
mov eax, 1
mov esi, ebx
call fcn.00473920
mov esi, dword [esp + 0x70]
add esp, 0x14
mov edx, ebx
call fcn.00475ec0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
mov esi, edi
call fcn.0049b600
jmp 0x49c58d
mov ecx, dword [esp + 0x3c]
xor edx, edx
test edi, edi
sete dl
push 0
push ecx
push esi
mov eax, ebp
lea edx, [edx + edx + 0x3f]
push edx
call fcn.004643c0
mov edi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x38], 0
je 0x49c5ef
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov dword [esp + 0x48], esi
call fcn.00474e30
mov ecx, dword [esp + 0x5c]
mov al, byte [ecx]
cmp al, 0x4f
je 0x49c5d3
cmp al, 0x4d
je 0x49c5d3
xor edx, edx
cmp dword [esp + 0x20], edx
setne dl
lea edx, [edx + edx + 0x4d]
mov dword [esp + 0x30], edx
jmp 0x49c5e4
xor eax, eax
cmp dword [esp + 0x20], eax
sete al
lea eax, [eax + eax + 0x4e]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov esi, edi
call fcn.0049b600
cmp dword [esp + 0x20], 0
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x14]
sete cl
add cl, 0x42
cmp dword [esp + 0x68], 0
mov byte [edi + 0x35], cl
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
jne 0x49c61c
cmp dword [esp + 0x38], 0
jne 0x49c61c
mov byte [edi + 0x36], 1
cmp dword [esp + 0x30], 0x89
je 0x49cfd8
mov eax, ebx
call fcn.00475ea0
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov ebx, eax
mov dword [esp + 0x2c], ebx
jg 0x49c64a
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49c672
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x3d
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call fcn.00473820
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
push ebx
push ecx
push edx
push eax
mov eax, ebp
call fcn.004643c0
mov eax, dword [ebp + 4]
mov ebx, dword [esp + 0x34]
add esp, 0x18
test eax, eax
je 0x49cfd8
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x6b
jmp 0x49cfd8
test edx, 0x30000
je 0x49cc22
mov ebx, dword [esi + 0x20]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 4]
xor eax, eax
test byte [esp + 0x6c], 1
mov dword [esp + 0x3c], ebx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + ecx*4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
je 0x49c70d
test edx, 0x1000000
je 0x49c70d
cmp dword [edi + 4], ecx
jle 0x49c70d
mov eax, 1
mov dword [esp + 0x50], eax
test edx, 0x100000
je 0x49c73e
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
push edi
push 0x18
push edx
mov edx, dword [esp + 0x30]
push eax
push ebx
push ecx
push edx
call fcn.00498cc0
mov dword [esp + 0x44], eax
add esp, 0x1c
mov eax, 1
test dword [esi], 0x200000
je 0x49c76f
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
push edi
push 0x24
push eax
mov eax, dword [esp + 0x30]
push ecx
push ebx
push edx
push eax
call fcn.00498cc0
mov dword [esp + 0x54], eax
add esp, 0x1c
mov eax, 1
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x78]
push edx
push eax
push ecx
push esi
push ebx
call fcn.0049b8c0
mov edx, dword [ebx]
mov ebx, dword [esp + 0x5c]
add esp, 0x1c
push edx
mov dword [esp + 0x38], eax
call fcn.0044a6e0
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x28]
add esp, 4
xor esi, esi
cmp ecx, dword [edi + 4]
mov dword [esp + 0x30], eax
jge 0x49c7de
mov edx, dword [edi + 0x28]
xor eax, eax
cmp byte [ecx + edx], al
sete al
cmp dword [esp + 0x20], eax
jne 0x49c7de
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
jmp 0x49c7e2
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x49c7f7
test byte [eax + 0x10], 0x28
jne 0x49c7f7
mov dword [esp + 0x44], esi
mov edx, 1
jmp 0x49c800
mov edx, 1
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x49c812
test byte [edi + 0x10], 0x28
mov dword [esp + 0x58], esi
je 0x49c816
mov dword [esp + 0x58], edx
cmp eax, esi
jne 0x49c822
cmp ecx, esi
mov dword [esp + 0x48], esi
jle 0x49c826
mov dword [esp + 0x48], edx
xor ebx, ebx
mov esi, ecx
cmp eax, ebx
je 0x49c8bf
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov ecx, dword [esp + 0x34]
mov edi, esi
lea esi, [ecx + edi]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x50], ebx
call fcn.00474e30
mov eax, ebx
mov cl, byte [eax]
cmp cl, 0x9d
je 0x49c85d
cmp cl, 0x9c
jne 0x49c862
mov eax, dword [eax + 8]
jmp 0x49c851
mov cl, byte [eax]
cmp cl, 0x84
jne 0x49c86c
mov cl, byte [eax + 0x23]
cmp cl, 0x5e
je 0x49c88b
cmp cl, 0x80
jbe 0x49c87b
cmp cl, 0x83
jbe 0x49c88b
mov edx, dword [esp + 0x30]
push edx
push esi
mov eax, ebp
call fcn.00472390
add esp, 8
mov esi, dword [esp + 0x40]
test esi, esi
je 0x49c8ba
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x50]
call fcn.00470d80
cmp al, 0x62
jne 0x49c8a6
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x50]
call fcn.004723e0
test eax, eax
je 0x49c8ba
mov byte [esi + edi], 0x62
lea esi, [edi + 1]
jmp 0x49c914
cmp dword [esp + 0x50], ebx
je 0x49c914
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x49c8d8
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49c903
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov edx, dword [esp + 0x34]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x68]
add edx, ecx
mov byte [eax], 0xa
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [esp + 0x68]
inc esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 1
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
push esi
push ebx
push edi
call fcn.0049b640
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
lea ecx, [edx + eax*2]
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + ecx*2 + 0x517c84]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
add esp, 0xc
push esi
push eax
push ebp
mov eax, ebx
call fcn.004645e0
mov esi, dword [esp + 0x74]
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x49ca2f
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
mov ebx, dword [edx + 0xc]
mov edi, esi
mov esi, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x50], eax
push eax
mov eax, 1
mov dword [esp + 0x4c], ebx
call fcn.00473920
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, ebx
call fcn.00474e30
mov eax, ebx
mov cl, byte [eax]
cmp cl, 0x9d
je 0x49c9ae
cmp cl, 0x9c
jne 0x49c9b3
mov eax, dword [eax + 8]
jmp 0x49c9a2
mov cl, byte [eax]
cmp cl, 0x84
jne 0x49c9bd
mov cl, byte [eax + 0x23]
cmp cl, 0x5e
je 0x49c9e0
cmp cl, 0x80
jbe 0x49c9cc
cmp cl, 0x83
jbe 0x49c9e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov eax, ebp
call fcn.00472390
add esp, 8
mov esi, dword [esp + 0x54]
test esi, esi
je 0x49ca0f
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x48]
call fcn.00470d80
cmp al, 0x62
jne 0x49c9fb
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x48]
call fcn.004723e0
test eax, eax
je 0x49ca0f
mov byte [esi + edi], 0x62
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc edi
push edi
push eax
push ecx
mov eax, esi
call fcn.0049b640
mov ebx, dword [esp + 0x40]
mov esi, edi
mov edi, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x40]
mov eax, dword [edi]
push edx
push eax
call fcn.0044a370
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi]
push ecx
push edx
call fcn.0044a370
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x28], 0
mov dword [ecx + 0x3c], eax
jne 0x49ca68
cmp dword [esp + 0x68], 0
jne 0x49ca68
xor eax, eax
jmp 0x49ca6d
mov eax, 1
mov edx, dword [esp + 0x20]
inc edx
imul edx, eax
movzx eax, byte [edx + 0x517c8c]
cmp eax, 0x89
je 0x49cab4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push esi
push eax
push ebp
mov eax, ebx
call fcn.004645e0
mov eax, dword [ebp + 4]
add esp, 0xc
test eax, eax
je 0x49cab4
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x1c]
setne dl
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], dl
mov eax, edi
call fcn.00475ea0
mov edx, dword [esp + 0x18]
test dword [edx], 0x300000
mov esi, eax
je 0x49cb1b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push esi
push eax
push ecx
push 0x1c
mov eax, ebp
call fcn.004643c0
mov ebx, dword [ebp + 0x1c]
add esp, 0x10
cmp dword [ebp + 0x20], ebx
jg 0x49caf3
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49cb1b
mov eax, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x4c]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x49
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [esp + 0x1c]
call fcn.00475ec0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
call fcn.0049b600
mov eax, dword [esp + 0x28]
call fcn.0049b600
cmp dword [esp + 0x5c], 0
jne 0x49cbe4
mov eax, dword [esp + 0x1c]
call fcn.00475ea0
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x2c], eax
jg 0x49cb65
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49cb91
mov eax, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x3c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x48
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
mov ebx, esi
call fcn.00473820
mov ebx, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x20], ebx
jg 0x49cbbd
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49cbe4
mov edx, dword [ebp + 4]
inc dword [ebp + 0x1c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x18]
test dword [eax], 0x4000000
je 0x49cc04
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov byte [eax + 0x35], 0x89
mov dword [eax + 0x38], edx
jmp 0x49cfd8
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
sete cl
add cl, 0x42
mov byte [eax + 0x35], cl
mov dword [eax + 0x38], edx
jmp 0x49cfd8
test edx, 0x10000000
je 0x49cfa6
inc dword [ebx + 0x48]
mov edi, dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
mov eax, ebp
mov dword [esp + 0x40], edi
call fcn.00464650
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x54], eax
mov byte [esi + 0x35], 3
mov dword [esi + 0x38], edi
mov eax, dword [ecx + 0x18]
cmp eax, 1
mov dword [esp + 0x30], 0
jle 0x49cd1f
sub eax, dword [esp + 0x68]
mov esi, dword [ebx]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx*8 + 0x40]
mov dword [esp + 0x5c], eax
call fcn.0044a5b0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x49d14a
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
lea ecx, [eax + 1]
mov word [edx + 2], cx
mov word [edx], cx
lea edi, [edx + 8]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 8]
add ecx, 8
cmp eax, 1
mov dword [esp + 0x50], ecx
jl 0x49cd26
add edx, 0x40
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
add edx, 0x84
mov dword [esp + 0x5c], eax
mov edi, edi
movzx eax, byte [edx]
mov edi, dword [esp + 0x48]
add dword [esp + 0x48], 0x38
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x50]
lea esi, [eax + ecx*8]
mov ecx, 0xe
add edx, 0x50
sub dword [esp + 0x5c], 1
rep movsd dword es:[edi], dword [esi]
jne 0x49ccf0
jmp 0x49cd26
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x6c]
and eax, 8
mov dword [esp + 0x28], eax
jne 0x49cd82
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
lea eax, [ecx + 1]
mov dword [ebx + 0x48], eax
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], eax
jg 0x49cd5e
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49cd82
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 4]
inc dword [ebp + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax], 0xa
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x49cd9f
mov edi, ebp
call fcn.00464340
test eax, eax
je 0x49cd9f
mov dword [esp + 0x50], 1
jmp 0x49cdcb
mov edx, dword [ebp + 4]
inc dword [ebp + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x54]
xor esi, esi
cmp dword [edi + 0x14], esi
mov dword [esp + 0x5c], esi
jle 0x49cf03
mov dword [esp + 0x48], esi
mov eax, dword [edi + 0x1c]
add eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x14]
je 0x49ce01
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x49cef0
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push 0xf0
push 0
push eax
push ecx
push ebx
call fcn.0049d210
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
je 0x49cef0
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + 0x34]
mov edx, dword [esp + 0x68]
push 0
push ecx
add eax, 0x30
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, ebx
call fcn.0049bd50
add esp, 0x14
cmp word [esp + 0x28], 0
jne 0x49ce8e
mov ecx, dword [edi + 0x14]
dec ecx
cmp esi, ecx
jne 0x49ce5b
or esi, 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x58]
push edx
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call fcn.00473a60
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x44]
add esp, 0xc
push esi
push 0x6b
add ecx, 2
push ebp
call fcn.004645e0
add esp, 0xc
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x49cea1
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49cecd
mov eax, dword [ebp + 4]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x40]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 2
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x20]
cmp byte [eax + 7], 0
je 0x49cedf
mov dword [esp + 0x30], 1
push eax
call fcn.0049dc90
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
add esp, 4
add dword [esp + 0x48], 0x28
inc esi
cmp esi, dword [edi + 0x14]
mov dword [esp + 0x5c], esi
jl 0x49cde2
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jle 0x49cf18
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x68], ecx
jg 0x49cf36
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49cf5d
mov eax, dword [ebp + 4]
xor ecx, ecx
inc dword [ebp + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x68]
mov byte [eax], 1
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x49cf76
mov ecx, dword [esp + 0x34]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esp + 0x64]
cmp dword [edx + 0x18], 1
jle 0x49cf90
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.0044a370
add esp, 8
cmp dword [esp + 0x30], 0
jne 0x49cfd8
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
call fcn.0049b600
jmp 0x49cfd8
mov dl, byte [edi + 0x517c90]
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x35], dl
mov edx, dword [esp + 0x3c]
push 0
mov dword [esi + 0x38], ecx
movzx eax, byte [edi + 0x517c94]
push edx
push ecx
push eax
mov eax, ebp
call fcn.004643c0
add esp, 0x10
inc eax
mov dword [esi + 0x3c], eax
mov byte [esi + 0x36], 1
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x49cffc
mov edi, dword [esp + 0x14]
add edx, 4
mov edi, edi
cmp dword [edx], edi
je 0x49d038
inc ecx
add edx, 4
cmp ecx, eax
jl 0x49cff0
xor eax, eax
xor edx, edx
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
not eax
and dword [esp + 0x70], eax
not edx
and dword [esp + 0x74], edx
test esi, esi
jle 0x49d075
test byte [edi + 0x12], 6
jne 0x49d06d
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [esp + 0x70]
and ecx, dword [esp + 0x74]
or eax, ecx
je 0x49d046
mov eax, dword [esp + 0x64]
mov byte [eax + 7], 1
jmp 0x49d06d
mov eax, 1
xor edx, edx
call fcn.00506e70
jmp 0x49d000
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x18], 0
mov eax, dword [edi]
je 0x49d058
test byte [eax + 2], 1
je 0x49d06d
mov edx, dword [esp + 0x4c]
push 8
push edx
push eax
push ebx
call fcn.00475680
add esp, 0x10
or byte [edi + 0x12], 4
dec esi
add edi, 0x28
test esi, esi
jg 0x49d016
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0
je 0x49d11d
mov ecx, dword [ebp + 0x1c]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x30], ecx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x64], edx
jg 0x49d0a3
mov edi, ebp
call fcn.00464340
test eax, eax
jne 0x49d0d0
mov edx, dword [ebp + 4]
mov ecx, 1
add dword [ebp + 0x1c], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, ebx
call fcn.00473af0
mov ebp, dword [esp + 0x24]
mov edi, dword [ebp + 0x1c]
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x49d11d
test byte [edi + 0x12], 6
jne 0x49d114
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [esp + 0x70]
and ecx, dword [esp + 0x74]
or eax, ecx
jne 0x49d114
mov edx, dword [esp + 0x4c]
mov eax, dword [edi]
push 8
push edx
push eax
push ebx
call fcn.00475680
add esp, 0x10
or byte [edi + 0x12], 4
inc esi
add edi, 0x28
cmp esi, dword [ebp + 0x14]
jl 0x49d0e5
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x49d14a
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x49d14a
xor eax, eax
lea ecx, [ebx + 0x60]
cmp dword [ecx + 0x10], esi
je 0x49d15a
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x49d132
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x15]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov byte [ecx + 8], 1
pop ebx
add esp, 0x50
ret