Function at 0x49c690
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 0x49c707
test byte [esp + 0x6c], 0x40
mov dword [esp + 0x5c], 1
je 0x49c70b
mov dword [esp + 0x5c], edx
mov eax, ebp
call fcn.00464cb0
mov dword [esp + 0x3c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov eax, ebp
call fcn.00464cb0
cmp byte [esi + 0x34], 0
mov dword [esp + 0x4c], eax
mov dword [esi + 0x2c], eax
jbe 0x49c78e
mov edx, dword [esp + 0x44]
test byte [edx + 0x15], 8
je 0x49c78e
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 0x49c76a
mov edi, ebp
call fcn.004649a0
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x49c78e
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 0x49ca05
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 0x49c7db
add esi, eax
sub ecx, eax
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], ecx
jmp 0x49c7ea
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 0x49c858
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
xor edi, edi
test eax, eax
jle 0x49c84b
cmp dword [edx + edi*8], ecx
je 0x49c811
inc edi
cmp edi, eax
jl 0x49c805
jmp 0x49c84b
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.00475490
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp edi, eax
je 0x49c858
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jle 0x49c7ff
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 0x49c87a
mov edi, ebp
call fcn.004649a0
mov ecx, dword [esp + 0x30]
test eax, eax
jne 0x49c8a6
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 0x49c8bd
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49c8e7
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 0x49c91d
mov edi, ebp
call fcn.004649a0
test eax, eax
je 0x49c91d
mov esi, 1
jmp 0x49c950
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.00465120
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x49c9c0
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 0x49c9b1
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.0049bc60
add dword [esp + 0x40], 8
add edi, 0xc
sub dword [esp + 0x48], 1
jne 0x49c990
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.00473f80
add esp, 4
cmp edi, dword [ebx + 0x38]
jle 0x49c9f9
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], ecx
mov eax, ebx
call fcn.00473fd0
jmp 0x49d638
test edx, 0x1000
je 0x49cad5
mov al, byte [ebx + 0x15]
test al, al
jne 0x49ca20
inc dword [ebx + 0x48]
mov edi, dword [ebx + 0x48]
jmp 0x49ca2c
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.00499320
add esp, 0x1c
push edi
push esi
push eax
mov eax, ebx
call fcn.0049bd40
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 0x49ca7b
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49caa3
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.00464a20
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push esi
call fcn.00473e80
mov eax, dword [esp + 0x30]
add esp, 0x18
mov byte [eax + 0x35], 0x89
mov ebx, edx
jmp 0x49d638
test edx, 0x2000
je 0x49cd1f
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.00499320
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.00499320
add esp, 0x1c
mov dword [esp + 0x38], eax
test edi, edi
je 0x49cb4f
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x68], 0
je 0x49cbcb
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.00475410
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.00464a20
push esi
mov eax, 1
mov esi, ebx
call fcn.00473f80
mov esi, dword [esp + 0x70]
add esp, 0x14
mov edx, ebx
call fcn.00476520
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
mov esi, edi
call fcn.0049bc60
jmp 0x49cbed
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.00464a20
mov edi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x38], 0
je 0x49cc4f
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.00475490
mov ecx, dword [esp + 0x5c]
mov al, byte [ecx]
cmp al, 0x4f
je 0x49cc33
cmp al, 0x4d
je 0x49cc33
xor edx, edx
cmp dword [esp + 0x20], edx
setne dl
lea edx, [edx + edx + 0x4d]
mov dword [esp + 0x30], edx
jmp 0x49cc44
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.0049bc60
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 0x49cc7c
cmp dword [esp + 0x38], 0
jne 0x49cc7c
mov byte [edi + 0x36], 1
cmp dword [esp + 0x30], 0x89
je 0x49d638
mov eax, ebx
call fcn.00476500
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov ebx, eax
mov dword [esp + 0x2c], ebx
jg 0x49ccaa
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49ccd2
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.00473e80
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.00464a20
mov eax, dword [ebp + 4]
mov ebx, dword [esp + 0x34]
add esp, 0x18
test eax, eax
je 0x49d638
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x6b
jmp 0x49d638
test edx, 0x30000
je 0x49d282
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 0x49cd6d
test edx, 0x1000000
je 0x49cd6d
cmp dword [edi + 4], ecx
jle 0x49cd6d
mov eax, 1
mov dword [esp + 0x50], eax
test edx, 0x100000
je 0x49cd9e
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.00499320
mov dword [esp + 0x44], eax
add esp, 0x1c
mov eax, 1
test dword [esi], 0x200000
je 0x49cdcf
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.00499320
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.0049bf20
mov edx, dword [ebx]
mov ebx, dword [esp + 0x5c]
add esp, 0x1c
push edx
mov dword [esp + 0x38], eax
call fcn.0044ad40
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 0x49ce3e
mov edx, dword [edi + 0x28]
xor eax, eax
cmp byte [ecx + edx], al
sete al
cmp dword [esp + 0x20], eax
jne 0x49ce3e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
jmp 0x49ce42
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x49ce57
test byte [eax + 0x10], 0x28
jne 0x49ce57
mov dword [esp + 0x44], esi
mov edx, 1
jmp 0x49ce60
mov edx, 1
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x49ce72
test byte [edi + 0x10], 0x28
mov dword [esp + 0x58], esi
je 0x49ce76
mov dword [esp + 0x58], edx
cmp eax, esi
jne 0x49ce82
cmp ecx, esi
mov dword [esp + 0x48], esi
jle 0x49ce86
mov dword [esp + 0x48], edx
xor ebx, ebx
mov esi, ecx
cmp eax, ebx
je 0x49cf1f
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.00475490
mov eax, ebx
mov cl, byte [eax]
cmp cl, 0x9d
je 0x49cebd
cmp cl, 0x9c
jne 0x49cec2
mov eax, dword [eax + 8]
jmp 0x49ceb1
mov cl, byte [eax]
cmp cl, 0x84
jne 0x49cecc
mov cl, byte [eax + 0x23]
cmp cl, 0x5e
je 0x49ceeb
cmp cl, 0x80
jbe 0x49cedb
cmp cl, 0x83
jbe 0x49ceeb
mov edx, dword [esp + 0x30]
push edx
push esi
mov eax, ebp
call fcn.004729f0
add esp, 8
mov esi, dword [esp + 0x40]
test esi, esi
je 0x49cf1a
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x50]
call fcn.004713e0
cmp al, 0x62
jne 0x49cf06
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x50]
call fcn.00472a40
test eax, eax
je 0x49cf1a
mov byte [esi + edi], 0x62
lea esi, [edi + 1]
jmp 0x49cf74
cmp dword [esp + 0x50], ebx
je 0x49cf74
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x49cf38
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49cf63
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.0049bca0
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 + 0x518c84]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
add esp, 0xc
push esi
push eax
push ebp
mov eax, ebx
call fcn.00464c40
mov esi, dword [esp + 0x74]
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x49d08f
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.00473f80
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, ebx
call fcn.00475490
mov eax, ebx
mov cl, byte [eax]
cmp cl, 0x9d
je 0x49d00e
cmp cl, 0x9c
jne 0x49d013
mov eax, dword [eax + 8]
jmp 0x49d002
mov cl, byte [eax]
cmp cl, 0x84
jne 0x49d01d
mov cl, byte [eax + 0x23]
cmp cl, 0x5e
je 0x49d040
cmp cl, 0x80
jbe 0x49d02c
cmp cl, 0x83
jbe 0x49d040
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov eax, ebp
call fcn.004729f0
add esp, 8
mov esi, dword [esp + 0x54]
test esi, esi
je 0x49d06f
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x48]
call fcn.004713e0
cmp al, 0x62
jne 0x49d05b
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x48]
call fcn.00472a40
test eax, eax
je 0x49d06f
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.0049bca0
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.0044a9d0
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi]
push ecx
push edx
call fcn.0044a9d0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x28], 0
mov dword [ecx + 0x3c], eax
jne 0x49d0c8
cmp dword [esp + 0x68], 0
jne 0x49d0c8
xor eax, eax
jmp 0x49d0cd
mov eax, 1
mov edx, dword [esp + 0x20]
inc edx
imul edx, eax
movzx eax, byte [edx + 0x518c8c]
cmp eax, 0x89
je 0x49d114
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push esi
push eax
push ebp
mov eax, ebx
call fcn.00464c40
mov eax, dword [ebp + 4]
add esp, 0xc
test eax, eax
je 0x49d114
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.00476500
mov edx, dword [esp + 0x18]
test dword [edx], 0x300000
mov esi, eax
je 0x49d17b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push esi
push eax
push ecx
push 0x1c
mov eax, ebp
call fcn.00464a20
mov ebx, dword [ebp + 0x1c]
add esp, 0x10
cmp dword [ebp + 0x20], ebx
jg 0x49d153
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d17b
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.00476520
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
call fcn.0049bc60
mov eax, dword [esp + 0x28]
call fcn.0049bc60
cmp dword [esp + 0x5c], 0
jne 0x49d244
mov eax, dword [esp + 0x1c]
call fcn.00476500
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x2c], eax
jg 0x49d1c5
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d1f1
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.00473e80
mov ebx, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x20], ebx
jg 0x49d21d
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d244
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 0x49d264
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov byte [eax + 0x35], 0x89
mov dword [eax + 0x38], edx
jmp 0x49d638
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 0x49d638
test edx, 0x10000000
je 0x49d606
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.00464cb0
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 0x49d37f
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.0044ac10
mov dword [esp + 0x3c], eax
test eax, eax
je 0x49d7aa
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 0x49d386
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 0x49d350
jmp 0x49d386
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x6c]
and eax, 8
mov dword [esp + 0x28], eax
jne 0x49d3e2
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 0x49d3be
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d3e2
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 0x49d3ff
mov edi, ebp
call fcn.004649a0
test eax, eax
je 0x49d3ff
mov dword [esp + 0x50], 1
jmp 0x49d42b
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 0x49d563
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 0x49d461
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x49d550
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push 0xf0
push 0
push eax
push ecx
push ebx
call fcn.0049d870
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
je 0x49d550
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.0049c3b0
add esp, 0x14
cmp word [esp + 0x28], 0
jne 0x49d4ee
mov ecx, dword [edi + 0x14]
dec ecx
cmp esi, ecx
jne 0x49d4bb
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.004740c0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x44]
add esp, 0xc
push esi
push 0x6b
add ecx, 2
push ebp
call fcn.00464c40
add esp, 0xc
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x49d501
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d52d
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 0x49d53f
mov dword [esp + 0x30], 1
push eax
call fcn.0049e2f0
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 0x49d442
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jle 0x49d578
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 0x49d596
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d5bd
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 0x49d5d6
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 0x49d5f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.0044a9d0
add esp, 8
cmp dword [esp + 0x30], 0
jne 0x49d638
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
call fcn.0049bc60
jmp 0x49d638
mov dl, byte [edi + 0x518c90]
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 + 0x518c94]
push edx
push ecx
push eax
mov eax, ebp
call fcn.00464a20
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 0x49d65c
mov edi, dword [esp + 0x14]
add edx, 4
mov edi, edi
cmp dword [edx], edi
je 0x49d698
inc ecx
add edx, 4
cmp ecx, eax
jl 0x49d650
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 0x49d6d5
test byte [edi + 0x12], 6
jne 0x49d6cd
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [esp + 0x70]
and ecx, dword [esp + 0x74]
or eax, ecx
je 0x49d6a6
mov eax, dword [esp + 0x64]
mov byte [eax + 7], 1
jmp 0x49d6cd
mov eax, 1
xor edx, edx
call fcn.00507590
jmp 0x49d660
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x18], 0
mov eax, dword [edi]
je 0x49d6b8
test byte [eax + 2], 1
je 0x49d6cd
mov edx, dword [esp + 0x4c]
push 8
push edx
push eax
push ebx
call fcn.00475ce0
add esp, 0x10
or byte [edi + 0x12], 4
dec esi
add edi, 0x28
test esi, esi
jg 0x49d676
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0
je 0x49d77d
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 0x49d703
mov edi, ebp
call fcn.004649a0
test eax, eax
jne 0x49d730
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.00474150
mov ebp, dword [esp + 0x24]
mov edi, dword [ebp + 0x1c]
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x49d77d
test byte [edi + 0x12], 6
jne 0x49d774
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [esp + 0x70]
and ecx, dword [esp + 0x74]
or eax, ecx
jne 0x49d774
mov edx, dword [esp + 0x4c]
mov eax, dword [edi]
push 8
push edx
push eax
push ebx
call fcn.00475ce0
add esp, 0x10
or byte [edi + 0x12], 4
inc esi
add edi, 0x28
cmp esi, dword [ebp + 0x14]
jl 0x49d745
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x49d7aa
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x49d7aa
xor eax, eax
lea ecx, [ebx + 0x60]
cmp dword [ecx + 0x10], esi
je 0x49d7ba
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x49d792
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