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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor eax, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
mov esi, dword [edi + 8]
mov byte [esp + 9], al
mov eax, dword [edi]
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x499f4b
call fcn.004a43b0
mov edx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x2c], esi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x40], eax
jne 0x499f6b
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 1
jmp 0x499f96
mov edx, dword [edx + 8]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x499f8e
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x499f86
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x499f76
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x49a0fd
xor edx, edx
mov dword [esp + 0x38], edx
nop word [eax + eax]
mov edi, dword [esp + 0x10]
movsx eax, word [edi + 0x28]
cmp ecx, eax
je 0x49a0e1
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x499fd1
cmp dword [eax + ecx*4], 0
jl 0x49a0e1
mov eax, dword [edi + 4]
movzx edi, byte [edx + eax + 0xc]
test edi, edi
je 0x49a0e1
mov cl, byte [ebp + 0x20]
cmp cl, 0xa
je 0x49a015
movzx edi, cl
cmp edi, 5
jne 0x499ffe
cmp dword [edx + eax + 4], 0
mov eax, 2
cmove edi, eax
mov ecx, dword [esp + 0x24]
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x49a00e
jmp dword [eax*4 + 0x49b384]
cmp edi, 0xa
jne 0x499fec
mov edi, 2
jmp 0x499ffe
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
push dword [edx + eax]
push dword [ecx]
push str._s._s
push dword [esp + 0x48]
call fcn.00450780
mov ecx, dword [esp + 0x34]
mov edx, 0x36
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x14]
inc eax
add ecx, eax
push ecx
push edi
push 0x513
mov ecx, esi
call fcn.0046bb20
mov ecx, dword [esi]
add esp, 0x1c
mov edx, dword [esp + 0x4c]
cmp byte [ecx + 0x45], 0
je 0x49a08b
push edx
mov edx, 0xfffffff9
call fcn.0046c6c0
add esp, 4
jmp 0x49a0a0
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x88]
mov edi, dword [esp + 0xc]
test eax, eax
jle 0x49a0be
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x24]
jmp 0x49a0e5
mov eax, dword [ebp + 0x14]
inc ecx
push dword [ebp + 0x24]
add eax, ecx
mov edx, 0x4b
push eax
mov ecx, esi
call fcn.0046bc70
mov ecx, dword [esp + 0x2c]
add esp, 8
mov edi, dword [esp + 0xc]
add dword [esp + 0x38], 0x10
inc ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x40]
jl 0x499fb0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x49a41e
mov eax, dword [esp + 0x3c]
test dword [eax + 0x18], 0x200
jne 0x49a41e
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x38], eax
mov al, byte [ebp + 0x20]
cmp al, 0xa
je 0x49a1ff
movzx eax, al
mov dword [esp + 0x38], eax
jmp 0x49a207
mov edi, dword [ebp + 0x14]
inc ecx
add edi, ecx
mov edx, 0x4c
push edi
mov ecx, esi
call fcn.0046bc00
mov edx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov edx, dword [edx + eax + 4]
test edx, edx
je 0x49a18c
cmp byte [edx], 0x9d
jne 0x49a18c
push edi
mov edi, dword [esp + 0x10]
push dword [edx + 0x1c]
mov edx, 0x40
mov ecx, dword [edi + 8]
call fcn.0046bc70
add esp, 8
jmp 0x49a1bb
mov ecx, dword [esp + 0xc]
push edi
call fcn.004853c0
add esp, 4
cmp eax, edi
je 0x49a1b7
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x49a1e5
push edi
push eax
mov edx, 0x41
call fcn.0046bc70
add esp, 8
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x49a1cc
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x49a1e9
mov ecx, dword [esp + 0x24]
mov eax, 0x729e0c
mov dword [eax + 8], edx
jmp 0x49a0e5
mov edi, edx
jmp 0x49a1bb
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x24]
jmp 0x49a0e5
mov dword [esp + 0x38], 2
xor edx, edx
mov dword [esp + 0x30], edx
cmp dword [ecx], edx
jle 0x49a417
mov edi, dword [ebp + 0x2c]
lea eax, [ecx + 0xc]
mov dword [esp + 0x28], eax
nop
mov ecx, dword [eax - 4]
mov dword [esp + 0x4c], ecx
test edi, edi
je 0x49a27a
xorps xmm0, xmm0
mov dword [esp + 0x78], 0
xor al, al
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
mov byte [esp + 0x74], al
mov dword [esp + 0x64], 0x499ec0
mov dword [esp + 0x78], edi
test ecx, ecx
je 0x49a26a
mov edx, ecx
lea ecx, [esp + 0x60]
call fcn.0047e1b0
mov al, byte [esp + 0x74]
mov edx, dword [esp + 0x30]
cmp byte [ebp + 0x1c], 0
jne 0x49a272
and al, 0xfd
test al, al
je 0x49a3f7
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x54], ecx
mov edi, dword [ecx + 0x44]
lea eax, [edi + 1]
mov dword [ecx + 0x44], eax
lea eax, [edi - 1]
test edi, eax
jne 0x49a2af
mov edx, dword [ecx + 0x48]
lea eax, [edi*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.0044ebb0
mov ecx, dword [esp + 0x5c]
add esp, 8
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x49a2bd
mov dword [eax + edi*4], 0xffffffff
push 0x10
not edi
push edi
push dword [esp + 0x54]
push dword [esp + 0x18]
call fcn.00486860
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, 4
jne 0x49a33e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49a304
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.0046bae0
add esp, 0xc
jmp 0x49a3d5
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x49a3d5
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov dword [esp + 0x4c], edx
test edx, edx
jne 0x49a356
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0xc]
cmp eax, 5
mov ecx, 2
cmove eax, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x49a387
mov ecx, edx
call fcn.004a43b0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x49a398
mov ecx, dword [edx + 0x78]
test ecx, ecx
cmovne edx, ecx
mov byte [edx + 0x15], 1
mov ecx, dword [esp + 0x40]
mov edx, 0x37
push 0
push dword [esp + 0x50]
push 0
push eax
push 0x113
call fcn.0046bf20
mov eax, dword [esp + 0x54]
add esp, 0x14
mov ecx, dword [eax + 0x88]
test ecx, ecx
jle 0x49a3d5
mov eax, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x49a3f4
lea eax, [edi*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x24]
inc edx
mov eax, dword [esp + 0x28]
add eax, 0x18
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
cmp edx, dword [ecx]
jl 0x49a220
mov edi, dword [esp + 0xc]
mov dword [edi + 0x38], 0
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x5c], 0x4e
je 0x49a7e7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49a7e7
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x54], ecx
mov edi, dword [ecx + 0x44]
lea eax, [edi + 1]
mov dword [ecx + 0x44], eax
lea eax, [edi - 1]
test edi, eax
jne 0x49a471
mov edx, dword [ecx + 0x48]
lea eax, [edi*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.0044ebb0
mov ecx, dword [esp + 0x5c]
add esp, 8
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x49a47f
mov dword [eax + edi*4], 0xffffffff
mov ecx, dword [esp + 0x10]
not edi
mov dl, byte [ebp + 0x20]
mov dword [esp + 0x54], edi
movzx eax, byte [ecx + 0x30]
cmp dl, 0xa
je 0x49a49a
movzx eax, dl
jmp 0x49a4a5
cmp eax, 0xa
mov edx, 2
cmove eax, edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
test edx, edx
je 0x49a522
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49a4d4
push edx
push edi
push dword [ebp + 0x14]
mov edx, 0x4e
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
jmp 0x49a504
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x49a51e
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x40], 5
jne 0x49a5b9
cmp byte [ebp + 0x20], 5
je 0x49a5b9
mov eax, dword [ecx + 8]
test eax, eax
je 0x49a5b9
nop
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x49a556
cmp cl, 3
je 0x49a556
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x49a540
jmp 0x49a5b9
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x44], edx
cmp dword [eax + 0x30], edx
jg 0x49a583
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x49a5b9
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x49a5e0
push dword [ebp + 0x14]
mov ecx, esi
push edi
push edx
mov edx, 0x20
call fcn.0046bae0
add esp, 0xc
jmp 0x49a60d
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
lea ecx, [eax - 1]
cmp ecx, 4
ja case.default.0x49a61d
jmp dword [ecx*4 + 0x49b394]
mov eax, dword [esp + 0x3c]
xor edi, edi
test dword [eax + 0x18], 0x2000
je 0x49a679
mov ecx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x18], 0x20000
je 0x49a64f
mov edx, dword [esp + 0x10]
call fcn.004ab990
mov edx, eax
mov ecx, edx
test edx, edx
je 0x49a668
cmp byte [ecx + 8], 0x6d
jne 0x49a661
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x49a655
xor eax, eax
test edi, edi
cmovne eax, edx
mov dword [esp + 0x4c], eax
mov edi, eax
test eax, eax
jne 0x49a6ce
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
call fcn.00497c60
add esp, 8
test eax, eax
jne 0x49a6ce
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], eax
je 0x49a702
mov edi, dword [esp + 0xc]
mov ecx, edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov eax, dword [edi + 0x78]
test eax, eax
push dword [ebp + 0xc]
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.00492d50
mov edi, dword [esp + 0x64]
add esp, 0x10
mov dword [esp + 0x48], 1
jmp 0x49a733
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push 1
mov eax, dword [ecx + 0x78]
test eax, eax
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x2c]
push edi
call fcn.00492920
add esp, 0x24
mov edi, dword [esp + 0x54]
mov dword [esp + 0x48], 1
jmp 0x49a733
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.0046bce0
jmp 0x49a733
mov eax, 2
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.00490b10
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x49a74e
lea eax, [edi*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x44]
test edi, edi
je 0x49a7e7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x50], ecx
cmp dword [eax + 0x30], ecx
jg 0x49a787
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x49a7bd
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x88]
mov ecx, edi
test edi, edi
jns 0x49a7cc
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x49a7db
mov eax, 0x729e0c
jmp 0x49a7e4
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x49b2d2
mov edx, dword [ebp + 8]
xor ecx, ecx
nop word [eax + eax]
cmp dword [edx + ecx*4], 0
je 0x49b2be
cmp byte [esp + 9], 0
jne 0x49a837
mov eax, dword [ebp + 0x14]
mov edx, edi
inc eax
mov ecx, esi
push eax
call fcn.00498950
add esp, 4
mov byte [esp + 9], 1
mov edi, dword [esi + 0xc]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x20], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x44], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x49a86c
mov edx, dword [edi + 0x48]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.0044ebb0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x49a87a
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [esp + 0x14]
not ecx
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x24], 0
je 0x49a95d
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49a8bc
push 0
push edx
push 0
mov edx, 0x3b
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
jmp 0x49a8ee
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x3b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
not eax
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x4c], eax
test edx, edx
je 0x49a925
push 0
push 0
mov ecx, eax
call fcn.004815a0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x54]
add esp, 8
jmp 0x49a927
xor edi, edi
cmp byte [eax + 0x45], 0
jne 0x49a941
push 0x10
push dword [esp + 0x24]
push edi
push ecx
call fcn.00486b70
mov eax, dword [esp + 0x5c]
add esp, 0x10
test edi, edi
je 0x49a94e
mov edx, edi
mov ecx, eax
call fcn.004813b0
mov eax, dword [esp + 0xc]
mov dword [eax + 0x38], 0
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 8]
xor edi, edi
mov ecx, dword [esp + 0x18]
mov ecx, dword [edx + ecx*4]
xor edx, edx
inc ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], ecx
cmp di, word [eax + 0x34]
jae 0x49aabd
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edi
mov eax, dword [eax + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x49aa0d
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
not eax
mov dword [edx + 0x38], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edi + 8]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
test edx, edx
je 0x49a9d1
push 0
push 0
mov ecx, eax
call fcn.004815a0
mov ecx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x54]
add esp, 8
jmp 0x49a9d3
xor edi, edi
cmp byte [eax + 0x45], 0
jne 0x49a9ec
push ecx
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.004863e0
mov eax, dword [esp + 0x50]
add esp, 4
test edi, edi
je 0x49a9f9
mov edx, edi
mov ecx, eax
call fcn.004813b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x38], 0
jmp 0x49aa90
cmp edx, 0xffffffff
je 0x49aa26
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x49aa26
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
jmp 0x49aa29
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
sar edx, 0x1f
and edx, 1
add edx, 0x41
cmp dword [eax + 0x30], ecx
jg 0x49aa57
push 0
push dword [esp + 0x2c]
mov ecx, esi
push edi
call fcn.0046bae0
mov ecx, dword [esp + 0x34]
add esp, 0xc
jmp 0x49aa90
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], 0
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax + 2], cx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x14]
inc ecx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
inc edx
add edi, 0x18
mov dword [esp + 0x40], edx
movzx eax, word [eax + 0x34]
cmp edx, eax
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
jl 0x49a986
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
movzx edi, word [eax + 0x34]
mov eax, dword [esi + 0xc]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49aaf0
push edx
push edi
push dword [esp + 0x38]
mov edx, 0x63
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
jmp 0x49ab22
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
je 0x49ab69
cmp edx, eax
jne 0x49ab69
cmp byte [ebp + 0x1c], 0
jne 0x49ab69
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x49b2b6
mov eax, dword [esp + 0x20]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x49b2b6
movzx ecx, byte [eax + 0x36]
test ecx, ecx
je 0x49ab3a
cmp byte [ebp + 0x20], 0xa
je 0x49ab7d
movzx ecx, byte [ebp + 0x20]
jmp 0x49ab88
cmp ecx, 0xa
mov edi, 2
cmove ecx, edi
cmp dword [esp + 0x18], 0
mov dword [esp + 0x4c], ecx
jne 0x49ac38
cmp dword [eax + 0x14], 0
jne 0x49ac38
cmp edx, eax
jne 0x49ac38
cmp ecx, 5
jne 0x49ac38
mov eax, dword [esp + 0x3c]
test dword [eax + 0x18], 0x2000
je 0x49ac05
mov ecx, dword [esp + 0xc]
xor edi, edi
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x18], 0x20000
je 0x49abdd
mov edx, dword [esp + 0x10]
call fcn.004ab990
mov edx, eax
mov ecx, edx
test edx, edx
je 0x49abf6
cmp byte [ecx + 8], 0x6d
jne 0x49abef
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x49abe3
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x49ac38
mov eax, dword [esp + 0x3c]
test dword [eax + 0x18], 0x4000
mov edi, dword [esp + 0x10]
je 0x49ab3e
cmp dword [edi + 0x10], 0
jne 0x49ac38
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
add ecx, 0x38
push 0
call fcn.00452e90
add esp, 4
cmp dword [eax + 8], 0
je 0x49ab3e
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x54], edx
movzx edi, word [eax + 0x32]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x40], edi
cmp dword [eax + 0x30], edx
jg 0x49ac79
push dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, 0x1c
push dword [esp + 0x24]
add eax, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.0046bae0
add esp, 0xc
mov edx, eax
jmp 0x49acbe
mov edi, dword [esp + 0x40]
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x18]
add esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x49acd5
mov eax, dword [esi + 0x58]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jne 0x49ace9
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], edi
jmp 0x49ad47
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
cmp eax, 1
jne 0x49ad16
mov al, byte [edx + 0x13]
test al, al
jne 0x49ad05
inc dword [edx + 0x2c]
mov edi, dword [edx + 0x2c]
jmp 0x49ad3f
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov edi, dword [edx + eax*4 + 0x15c]
jmp 0x49ad3f
mov ecx, dword [edx + 0x1c]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x24], edi
cmp eax, ecx
jg 0x49ad32
add eax, edi
sub ecx, dword [esp + 0x34]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x49ad43
mov eax, dword [edx + 0x2c]
lea edi, [eax + 1]
add eax, dword [esp + 0x34]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x14]
cmp dword [ebp + 0x18], 0
jne 0x49ad58
cmp dword [esp + 0x4c], 5
jne 0x49b102
mov eax, dword [esp + 0x10]
test byte [eax + 0x24], 0x20
jne 0x49ae51
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49ad90
mov eax, dword [esp + 0x18]
mov edx, 0x81
add eax, dword [ebp + 0x10]
mov ecx, esi
push 0
push edi
push eax
call fcn.0046bae0
add esp, 0xc
jmp 0x49adcd
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x49b102
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49adfd
push edx
push dword [esp + 0x24]
mov edx, 0x4e
mov ecx, esi
push edi
call fcn.0046bae0
add esp, 0xc
jmp 0x49ae2e
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x49b102
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x49b102
mov edi, dword [esp + 0x1c]
cmp edx, edi
je 0x49af4e
mov eax, dword [esp + 0x1c]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x38], edi
cmp cx, word [eax + 0x32]
jae 0x49af4a
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
nop dword [eax + eax]
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
jle 0x49aead
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
nop dword [eax]
cmp di, word [eax]
je 0x49aee4
inc ecx
add eax, 2
cmp ecx, edx
jl 0x49aea0
or eax, 0xffffffff
mov ecx, dword [esi + 0x88]
movsx edx, ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x54], edx
cmp dword [eax + 0x30], ecx
jg 0x49aee9
mov edi, dword [esp + 0x40]
mov ecx, esi
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x10]
push edi
push edx
push eax
mov edx, 0x60
call fcn.0046bae0
add esp, 0xc
jmp 0x49af26
movzx eax, cx
jmp 0x49aeb0
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x54]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x40]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
inc edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x40], edi
mov edi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jl 0x49ae80
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
je 0x49b102
movzx ecx, word [edi + 0x32]
mov eax, dword [esi + 0x88]
add eax, ecx
mov dword [esp + 0x38], 0x4d
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x24]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x30]
mov dword [esp + 0x54], edx
xor edx, edx
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x49b102
mov eax, dword [edi + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], edx
mov edi, dword [eax]
mov ch, byte [edi + 0x42]
mov cl, byte [edi + 0x99]
mov byte [esp + 0xb], ch
mov byte [esp + 0xa], cl
test edx, edx
je 0x49afd5
movzx eax, cl
mov ecx, edi
push eax
call fcn.00491580
mov cl, byte [esp + 0xe]
add esp, 4
mov edx, dword [esp + 0x58]
mov edi, eax
mov ch, byte [esp + 0xb]
jmp 0x49afd8
mov edi, dword [edi + 8]
test edi, edi
je 0x49afe8
movzx eax, ch
lea eax, [eax + eax*4]
lea edi, [edi + eax*4]
add edi, 0xffffffec
test cl, cl
jne 0x49b008
test edi, edi
je 0x49aff6
cmp dword [edi + 0xc], 0
jne 0x49b008
push edx
mov dl, ch
mov ecx, dword [esp + 0x10]
push edi
call fcn.004914b0
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
movsx edx, word [ecx + eax*2]
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0x32]
mov eax, dword [esp + 0x38]
dec ecx
cmp dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x38], eax
cmove eax, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
cmovne eax, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], eax
add ecx, edx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x58], ecx
cmp dword [eax + 0x30], edx
jg 0x49b07a
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
push eax
push dword [esp + 0x44]
push ecx
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
mov edx, eax
jmp 0x49b0c2
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x38]
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x54]
mov dword [ecx + 0xc], eax
push 0xfffffffffffffffe
push edi
mov ecx, esi
call fcn.0046c930
mov eax, dword [esi + 0x88]
add esp, 8
test eax, eax
jle 0x49b0e9
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
movzx eax, word [edi + 0x32]
cmp edx, eax
jl 0x49af92
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x49b19e
cmp edx, 3
jbe 0x49b187
cmp edx, 4
jne 0x49b19e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x49b149
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.0046bae0
mov edi, dword [esp + 0x18]
add esp, 0xc
jmp 0x49b254
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov edi, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x49b254
push dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004908a0
add esp, 4
jmp 0x49b254
mov edi, dword [esp + 0xc]
xor edx, edx
mov ecx, edi
mov eax, dword [edi + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x3c]
mov byte [ecx + 0x14], 1
test dword [eax + 0x18], 0x2000
je 0x49b210
mov ecx, dword [esp + 0xc]
xor edi, edi
mov dword [esp + 0x54], edx
mov eax, dword [ecx]
test dword [eax + 0x18], 0x20000
je 0x49b1e3
mov edx, dword [esp + 0x10]
call fcn.004ab990
mov edx, eax
mov dword [esp + 0x54], eax
mov ecx, edx
test edx, edx
je 0x49b203
nop dword [eax]
cmp byte [ecx + 8], 0x6d
jne 0x49b1fc
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x49b1f0
xor edx, edx
test edi, edi
mov edi, dword [esp + 0xc]
cmovne edx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
mov ecx, edi
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x44]
push dword [esp + 0x38]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x34]
call fcn.00492920
mov esi, dword [esp + 0x50]
add esp, 0x24
mov dword [esp + 0x48], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x49b273
mov eax, dword [esp + 0x20]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
je 0x49b2af
mov ecx, dword [esp + 0x34]
mov edx, eax
cmp ecx, 1
jne 0x49b291
mov ecx, edi
call fcn.00487790
jmp 0x49b2af
push ecx
mov ecx, edi
call fcn.00484ec0
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, dword [edi + 0x1c]
jle 0x49b2af
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x20], eax
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x49a810
mov eax, dword [esp + 0x44]
test eax, eax
je 0x49b374
mov ecx, dword [esi + 0x88]
lea edi, [eax + 1]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x49b305
push 0
push edi
push 0
mov edx, 0xd
mov ecx, esi
call fcn.0046bae0
add esp, 0xc
jmp 0x49b337
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x49b348
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x49b367
mov ecx, dword [esp + 0x48]
mov eax, 0x729e0c
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret