Function at 0x498320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd1c7
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x527534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x2c8], 0
lea esi, [ebx + 0x2bc]
push 0
push 0
push 1
push 4
lea ecx, [ebx + 0x20]
push esi
je 0x498372
push 0x454
jmp 0x498377
push 0x3ef
call fcn.00466dc0
call fcn.00403070
mov ecx, eax
test ecx, ecx
je 0x499958
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x478], edi
mov ecx, dword [ebx + 0x2c4]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 0x458], eax
cmp dword [ecx - 0xc], 0
jne 0x49851a
call fcn.00403070
mov ecx, eax
test ecx, ecx
je 0x499962
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x450], eax
push 0x4f8ddc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
call fcn.004029a0
test al, al
jne 0x498404
push 0x10
push 0x4f8ddc
lea ecx, [ebp - 0x450]
call fcn.00404580
mov byte [ebp - 4], 2
call fcn.00403070
mov ecx, eax
test ecx, ecx
je 0x49996c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x460], eax
push 0x4f8e00
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
call fcn.004029a0
test al, al
jne 0x49844f
push 0x11
push 0x4f8e00
lea ecx, [ebp - 0x460]
call fcn.00404580
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.0044f2b0
push eax
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 5
call fcn.004024b0
mov edx, dword [ebp - 0x45c]
or esi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4984a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x460]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4984c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x450]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4984e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c4]
lea edx, [ebp - 0x45c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [ebp - 0x478]
push 0x30
push dword [eax]
push edi
push dword [ebx + 4]
call dword [0x4df4f8]
mov edx, dword [ebp - 0x45c]
jmp 0x498c8c
lea eax, [ebp - 0x45c]
mov ecx, ebx
push eax
call fcn.00496510
push dword [eax]
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.004049f0
mov edx, dword [ebp - 0x45c]
or esi, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49855d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x470]
call dword [0x4df480]
test eax, eax
jne 0x49871e
lea eax, [ebp - 0x470]
push eax
call fcn.00448960
add esp, 4
test al, al
je 0x49859b
lea eax, [ebp - 0x470]
push eax
call fcn.004483b0
add esp, 4
test eax, eax
je 0x49871e
call fcn.00403070
mov ecx, eax
test ecx, ecx
je 0x499976
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x468], eax
push 0x4f8e58
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 9
call fcn.004049f0
push 0x4f8e24
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xa
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x454]
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
push dword [ebp - 0x470]
mov byte [ebp - 4], 0xc
push dword [eax]
lea eax, [ebp - 0x468]
push eax
call fcn.00402f60
mov edx, dword [ebp - 0x454]
add esp, 0xc
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498647
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x450]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498668
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x460]
mov eax, esi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498689
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x464], esi
mov eax, dword [ebp - 0x468]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x450], eax
call fcn.00404d60
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.004955c0
cmp al, 1
jne 0x498886
lea eax, [ebp - 0x454]
mov ecx, ebx
push eax
call fcn.00496510
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0xd
call fcn.004024b0
mov edx, dword [ebp - 0x454]
or esi, 0xffffffff
mov byte [ebp - 4], 9
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498700
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x450]
mov eax, esi
mov byte [ebp - 4], 8
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49871e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x4f0], 0
mov byte [ebp - 0x4ec], 0
movups xmmword [ebp - 0x4e8], xmm0
mov dword [ebp - 0x4d8], 0
mov byte [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov byte [ebp - 0x4c8], 0
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 0x4bc], 0
lea eax, [ebp - 0x488]
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x464], eax
push 1
mov byte [ebp - 4], 0xf
call fcn.004ae82f
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 0x10
push eax
call fcn.0041b8f0
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x480]
push eax
call fcn.0041ba80
add esp, 0xc
mov dword [ebp - 0x484], eax
push 1
push 0x4f8ff2
push 0x4f8f38
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x544]
call fcn.0041bc30
lea ecx, [ebp - 0x544]
mov byte [ebp - 4], 0x12
call fcn.00425cb0
mov ecx, eax
mov dword [ebp - 0x45c], ecx
test ecx, ecx
je 0x498813
lock inc dword [ecx + 0x20]
mov edx, dword [ebp - 0x48c]
test edx, edx
je 0x49883c
mov eax, esi
lock xadd dword [edx + 0x20], eax
jne 0x49883c
push 0
push dword [ebp - 0x48c]
call fcn.00425db0
mov ecx, dword [ebp - 0x45c]
add esp, 8
mov dword [ebp - 0x48c], ecx
mov ecx, dword [ebp - 0x530]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x4988d8
mov eax, dword [ebp - 0x528]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x4988b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499980
jmp 0x4988b0
mov edx, dword [ebp - 0x450]
or esi, 0xffffffff
mov byte [ebp - 4], 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498c82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x498c82
push edx
push ecx
call fcn.004af9b5
add esp, 8
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x528], 0
mov edx, dword [ebx + 0x2bc]
mov ecx, edx
mov byte [ebp - 4], 0x13
lea eax, [ecx + 2]
mov dword [ebp - 0x45c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4988f0
sub ecx, dword [ebp - 0x45c]
sar ecx, 1
push edx
push 0
lea eax, [edx + ecx*2]
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4f0]
push ecx
push eax
push edx
call fcn.0041aeb0
mov ecx, dword [ebp - 0x4e4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x4e8]
add esp, 0x18
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x49894a
lea eax, [ebp - 0x4c4]
jmp 0x498953
mov eax, dword [ebp - 0x4e8]
add eax, 0xc
cmp byte [eax + 8], 0
je 0x498960
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x498964
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], di
mov edx, 7
mov edi, dword [ebp - 0x478]
mov dword [ebp - 0x14], edx
cmp ecx, eax
je 0x498994
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0045fcf0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x28]
cmp edx, 8
mov byte [ebp - 4], 0x14
cmovae eax, dword [ebp - 0x28]
push eax
push 0x4f8ff4
call fcn.004476c0
lea ecx, [ebp - 0x28]
call fcn.0041c790
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0xa
mov byte [ebp - 4], 0x15
call fcn.00403070
mov ecx, eax
test ecx, ecx
je 0x499985
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x450], eax
push 0x4f9000
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x16
call fcn.004029a0
test al, al
jne 0x498a42
push 2
push 0x4f9000
lea ecx, [ebp - 0x450]
call fcn.00404580
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebx + 0x2bc]
push eax
call fcn.00485510
mov edx, dword [ebp - 0x450]
add esp, 0xc
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498a84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
call fcn.00445a80
test al, al
je 0x498b90
push 0x4f9008
lea ecx, [ebp - 0x450]
call fcn.004049f0
push 0x4f9114
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x18
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
lea edx, [ebp - 0x454]
push edx
mov byte [ebp - 4], 0x19
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, eax
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.0044f2b0
push 0x30
push dword [esi]
push dword [eax]
push dword [ebx + 4]
call dword [0x4df4f8]
mov edx, dword [ebp - 0x45c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498b2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x454]
mov eax, esi
mov byte [ebp - 4], 0x19
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498b4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x468]
mov eax, esi
mov byte [ebp - 4], 0x18
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498b6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x450]
mov eax, esi
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498b90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x4a4], 0
jne 0x498fe6
push 0
push 0x4f9140
lea ecx, [ebx + 0x2bc]
call fcn.00404580
push dword [ebx + 0x2bc]
xor ecx, ecx
lea esi, [ebx + 0x20]
mov eax, ebx
cmp byte [ebx + 0x2c8], cl
je 0x498ce2
test esi, esi
push 0x454
cmove eax, ecx
mov dword [ebp - 0x45c], eax
add eax, 4
mov dword [ebp - 0x458], eax
push dword [eax]
call dword [0x4df5b8]
test eax, eax
jne 0x498d1f
push 0xffffffffffffffff
call dword [0x4df4c8]
mov ecx, dword [ebp - 0x45c]
push 0x454
lea eax, [ecx + 0x20]
neg eax
sbb eax, eax
and eax, ecx
push dword [eax + 4]
call dword [0x4df5bc]
push eax
call dword [0x4df540]
or esi, 0xffffffff
lea ecx, [ebp - 0x4ac]
call fcn.0043d1c0
mov ecx, dword [ebp - 0x48c]
test ecx, ecx
je 0x498c4e
mov eax, esi
lock xadd dword [ecx + 0x20], eax
jne 0x498c4e
push 0
push dword [ebp - 0x48c]
call fcn.00425db0
add esp, 8
mov dword [ebp - 0x48c], 0
mov ecx, dword [ebp - 0x47c]
mov byte [ebp - 4], 0x3d
test ecx, ecx
je 0x498c77
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x498c77
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea ecx, [ebp - 0x4e8]
call fcn.0041c8c0
mov edx, dword [ebp - 0x470]
mov byte [ebp - 4], 0
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498ca3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x498cbf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004afed2
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
push 0x3ef
cmove eax, ecx
mov dword [ebp - 0x45c], eax
add eax, 4
mov dword [ebp - 0x458], eax
push dword [eax]
call dword [0x4df5b8]
test eax, eax
jne 0x498d1f
push 0xffffffffffffffff
call dword [0x4df4c8]
mov ecx, dword [ebp - 0x45c]
push 0x3ef
jmp 0x498c04
cmp dword [esi], 0
mov ecx, dword [0x4df5bc]
jne 0x498d92
mov eax, dword [ebp - 0x458]
push 0x3ef
push dword [eax]
call ecx
mov dword [ebp - 0x458], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x498d52
call fcn.004adb78
mov dword [esi + 0x10], eax
test eax, eax
je 0x498d8c
push esi
push 0x40a070
push eax
call fcn.004adc7a
push dword [esi + 0x10]
call fcn.004adbdd
push eax
push 0xfffffffffffffffc
push dword [ebp - 0x458]
call dword [0x4df558]
mov ecx, dword [0x4df5bc]
test eax, eax
je 0x498d92
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x458]
mov dword [esi], eax
jmp 0x498d92
mov ecx, dword [0x4df5bc]
cmp dword [ebx + 0x48], 0
mov edx, 4
jne 0x498e10
test esi, esi
lea eax, [esi - 0x1c]
push 0x454
cmove eax, edx
push dword [eax]
call ecx
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x458], eax
lea eax, [ebx + 0x48]
test ecx, ecx
jne 0x498dcf
call fcn.004adb78
mov ecx, eax
lea eax, [ebx + 0x48]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x498e0b
push eax
push 0x40a070
push ecx
call fcn.004adc7a
push dword [ebx + 0x58]
call fcn.004adbdd
push eax
push 0xfffffffffffffffc
push dword [ebp - 0x458]
call dword [0x4df558]
mov ecx, eax
mov edx, 4
test ecx, ecx
je 0x498e10
mov dword [ebx + 0x60], ecx
mov ecx, dword [ebp - 0x458]
mov dword [ebx + 0x48], ecx
jmp 0x498e10
mov edx, 4
cmp dword [ebx + 0x25c], 0
jne 0x498e34
test esi, esi
lea eax, [esi - 0x1c]
push 0x3f1
cmove eax, edx
push dword [eax]
call dword [0x4df5bc]
mov dword [ebx + 0x25c], eax
cmp dword [ebx + 0x264], 0
jne 0x498e5d
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0x3f2
push dword [eax]
call dword [0x4df5bc]
mov dword [ebx + 0x264], eax
cmp dword [ebx + 0x260], 0
jne 0x498e86
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0x436
push dword [eax]
call dword [0x4df5bc]
mov dword [ebx + 0x260], eax
push 0
lea eax, [ebx + 0x70]
mov ecx, esi
push eax
push 0x434
call fcn.0048c0b0
push 0
lea eax, [ebx + 0xcc]
mov ecx, esi
push eax
push 0x43f
call fcn.0048c0b0
cmp dword [ebx + 0x134], 0
jne 0x498edc
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0x3ea
push dword [eax]
call dword [0x4df5bc]
push eax
lea ecx, [ebx + 0x130]
call fcn.004047c0
cmp dword [ebx + 0x268], 0
jne 0x498f05
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0x432
push dword [eax]
call dword [0x4df5bc]
mov dword [ebx + 0x268], eax
cmp dword [ebx + 0x26c], 0
jne 0x498f2e
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0x433
push dword [eax]
call dword [0x4df5bc]
mov dword [ebx + 0x26c], eax
cmp dword [ebx + 0x1fc], 0
jne 0x498f5d
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0x3eb
push dword [eax]
call dword [0x4df5bc]
push eax
lea ecx, [ebx + 0x1f8]
call fcn.004047c0
add ebx, 0x270
cmp dword [ebx + 4], 0
jne 0x498c1d
test esi, esi
lea eax, [esi - 0x1c]
mov ecx, 4
cmove eax, ecx
push 0xb3
push dword [eax]
call dword [0x4df5bc]
mov edx, dword [ebx]
mov ecx, ebx
mov esi, eax
call dword [edx + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x498fad
call fcn.004adb78
mov dword [ebx + 0x14], eax
test eax, eax
je 0x498c1d
push ebx
push dword [ebp - 0x45c]
push eax
call fcn.004adc7a
push dword [ebx + 0x14]
call fcn.004adbdd
push eax
push 0xfffffffffffffffc
push esi
call dword [0x4df558]
test eax, eax
je 0x498c1d
mov ecx, ebx
mov dword [ebx + 0x20], eax
mov dword [ebx + 4], esi
call fcn.004031c0
jmp 0x498c1d
mov byte [ebp - 0x450], 1
mov byte [ebp - 0x45c], 1
mov byte [ebp - 0x449], 1
call fcn.00403070
mov ecx, eax
test ecx, ecx
je 0x49998f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x460], esi
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 0x1b
call fcn.004456c0
test al, al
je 0x499463
cmp byte [ebx + 0x2c8], 0
lea ecx, [ebp - 0x468]
je 0x49914c
push 0x4f9170
call fcn.004049f0
push 0x4f9144
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0x1c
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x454]
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
push eax
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0x1e
call fcn.004024b0
lea ecx, [ebp - 0x454]
call fcn.00402340
lea ecx, [ebp - 0x458]
call fcn.00402340
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x1b
call fcn.00402340
mov ecx, dword [ebx + 0x2c4]
lea edx, [ebp - 0x454]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [ebp - 0x460]
push 0x23
push dword [eax]
push esi
push dword [ebx + 4]
call dword [0x4df4f8]
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x46c], eax
call fcn.00402340
mov eax, dword [ebp - 0x46c]
sub eax, 2
je 0x49912e
sub eax, 4
je 0x499122
sub eax, 1
jne 0x499463
mov byte [ebp - 0x450], al
jmp 0x499463
mov byte [ebp - 0x450], 1
jmp 0x499463
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
call fcn.00447340
mov byte [ebp - 0x449], 0
jmp 0x499463
push 0x4f93f0
mov byte [ebp - 0x450], 0
call fcn.004049f0
push 0x4f9524
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0x1f
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x454]
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
push eax
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0x21
call fcn.004024b0
lea ecx, [ebp - 0x454]
call fcn.00402340
lea ecx, [ebp - 0x458]
call fcn.00402340
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x1b
call fcn.00402340
push 0x4f955c
lea ecx, [ebp - 0x454]
call fcn.004049f0
push 0x4f956c
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 0x22
call fcn.004049f0
push 0x4f9594
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 0x23
call fcn.004049f0
push 0x4f95b4
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x24
call fcn.004049f0
push 0x4f93cc
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x25
call fcn.004049f0
push 0x4f95e4
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0x26
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
lea edx, [ebp - 0x454]
push ecx
mov eax, esp
mov dword [ebp - 0x464], esp
push edx
lea edx, [ebp - 0x46c]
mov byte [ebp - 4], 0x27
push edx
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
mov ecx, dword [ebx + 0x2c4]
push ecx
mov byte [ebp - 4], 0x28
mov eax, esp
mov dword [ebp - 0x4b0], esp
lea edx, [ebp - 0x474]
push edx
lea edx, [ebp - 0x490]
push edx
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
mov ecx, dword [ebx + 0x2c4]
lea edx, [ebp - 0x468]
push ecx
mov eax, esp
mov dword [ebp - 0x4b4], esp
push edx
lea edx, [ebp - 0x458]
mov byte [ebp - 4], 0x29
push edx
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
push ecx
lea eax, [ebp - 0x460]
mov dword [ebp - 0x4b8], esp
mov ecx, esp
mov byte [ebp - 4], 0x2a
push eax
call fcn.004159a0
mov ecx, dword [ebx + 0x2c4]
push ecx
push esp
mov byte [ebp - 4], 0x2b
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 0x27
call fcn.00463d10
lea ecx, [ebp - 0x458]
call fcn.00402340
lea ecx, [ebp - 0x468]
call fcn.00402340
lea ecx, [ebp - 0x490]
call fcn.00402340
lea ecx, [ebp - 0x474]
call fcn.00402340
lea ecx, [ebp - 0x46c]
call fcn.00402340
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0x32
call fcn.00402340
call dword [0x4df63c]
mov esi, eax
mov eax, dword [ebp - 0x660]
test eax, eax
jne 0x49937c
call fcn.004adb78
mov dword [ebp - 0x660], eax
test eax, eax
jne 0x49937c
push 0xe
call dword [0x4df19c]
or eax, 0xffffffff
jmp 0x4993e3
push 0
push 0
push eax
call fcn.004adc7a
lea eax, [ebp - 0x674]
mov dword [ebp - 0x66c], eax
call dword [0x4df24c]
push str.COMDLG32.dll
mov dword [ebp - 0x668], eax
call dword [0x4df1e4]
mov eax, dword [0x52601c]
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x66c]
push str.COMDLG32.dll
mov dword [0x52601c], eax
call dword [0x4df1e8]
push 0
push 0x446fe0
push esi
push 0xbb
push dword [0x52ae78]
call dword [0x4df500]
sub eax, 0
je 0x499408
sub eax, 2
jne 0x49944e
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
call fcn.00447340
mov byte [ebp - 0x449], 0
jmp 0x49944e
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
call fcn.00447340
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x464]
push 0xf
push eax
mov byte [ebp - 0x449], 0
call fcn.004466e0
push dword [eax]
mov byte [ebp - 4], 0x33
call fcn.004aa5f0
add esp, 4
lea ecx, [ebp - 0x464]
call fcn.00402340
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 0x1b
call fcn.00463ea0
mov esi, dword [ebp - 0x460]
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
call fcn.004456e0
test al, al
je 0x4995a6
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 0x45c], 0
mov byte [ebp - 0x449], 0
call fcn.00447320
push 0x4f9610
lea ecx, [ebp - 0x46c]
call fcn.004049f0
push 0x4f9758
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0x34
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 0x35
push eax
lea eax, [ebp - 0x464]
push eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.0044f2b0
push eax
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0x36
call fcn.004024b0
mov edx, dword [ebp - 0x464]
or esi, 0xffffffff
mov byte [ebp - 4], 0x35
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499520
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x454]
mov eax, esi
mov byte [ebp - 4], 0x34
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499541
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x46c]
mov eax, esi
mov byte [ebp - 4], 0x1b
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499562
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c4]
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [ebp - 0x460]
push 0x30
push dword [eax]
push esi
push dword [ebx + 4]
call dword [0x4df4f8]
mov edx, dword [ebp - 0x464]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4995a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x4f978c
lea ecx, [ebx + 0x2bc]
call fcn.00404580
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00495c90
cmp byte [ebp - 0x449], 0
je 0x499931
mov ecx, dword [ebx + 0x2c4]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
call fcn.0044d1b0
test al, al
jne 0x4996bb
mov edx, dword [ebx + 0x2c4]
cmp byte [edx + 0x41c], al
je 0x4996bb
mov eax, dword [ebx + 0x2d0]
inc eax
mov dword [ebx + 0x2d0], eax
mov ecx, dword [edx + 0x418]
mov dword [ebp - 0x454], ecx
test ecx, ecx
je 0x499632
jle 0x4996bb
cdq
idiv ecx
test edx, edx
jne 0x4996bb
mov edx, dword [ebx + 0x2c4]
push dword [edx + 0x414]
push ecx
mov dword [ebp - 0x464], esp
mov eax, dword [edx + 0x410]
sub eax, 0x10
push eax
call fcn.00404d60
mov ecx, dword [ebp - 0x464]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x448]
push dword [ebx + 0x2cc]
call fcn.0040cea0
mov ecx, dword [ebx + 0x2c4]
push 0x4f9790
push 0x4f9794
mov byte [ebp - 4], 0x37
call fcn.004476c0
lea ecx, [ebp - 0x448]
call fcn.0040d090
cmp dword [ebp - 0x454], 0
jne 0x4996a7
mov eax, dword [ebx + 0x2c4]
mov byte [eax + 0x41c], 0
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 0x1b
call fcn.004450d0
jmp 0x499856
mov ecx, dword [ebx + 0x2c4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
call fcn.0040c370
test al, al
je 0x499856
mov ecx, dword [ebx + 0x2c4]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
call fcn.0044d1b0
test al, al
jne 0x499856
mov eax, dword [ebx + 0x2c4]
mov al, byte [eax + 0x3fa]
test al, al
jne 0x499856
push ecx
mov ecx, esp
mov dword [ebp - 0x494], esp
push 0x4f97a4
call fcn.004049f0
push ecx
mov ecx, esp
mov dword [ebp - 0x4b8], esp
push 0x4f97c4
mov byte [ebp - 4], 0x38
call fcn.004049f0
push ecx
mov ecx, esp
mov dword [ebp - 0x4b4], esp
push 0x4f9800
mov byte [ebp - 4], 0x39
call fcn.004049f0
mov ecx, dword [ebx + 0x2c4]
push ecx
push esp
mov byte [ebp - 4], 0x3a
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x5d8]
mov byte [ebp - 4], 0x1b
call fcn.00463730
mov eax, dword [ebx + 0x2c4]
mov byte [ebp - 4], 0x3b
mov byte [eax + 0x3fa], 1
call dword [0x4df63c]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x5c4]
test eax, eax
jne 0x4997a9
call fcn.004adb78
mov dword [ebp - 0x5c4], eax
test eax, eax
jne 0x4997a9
push 0xe
call dword [0x4df19c]
jmp 0x499847
push 0
push 0
push eax
call fcn.004adc7a
lea eax, [ebp - 0x5d8]
mov dword [ebp - 0x5d0], eax
call dword [0x4df24c]
push str.COMDLG32.dll
mov dword [ebp - 0x5cc], eax
call dword [0x4df1e4]
mov eax, dword [0x52601c]
mov dword [ebp - 0x5c8], eax
lea eax, [ebp - 0x5d0]
push str.COMDLG32.dll
mov dword [0x52601c], eax
call dword [0x4df1e8]
push 0
push 0x446fe0
push dword [ebp - 0x464]
push 0xbc
push dword [0x52ae78]
call dword [0x4df500]
cmp eax, 1
jne 0x499847
mov ecx, dword [ebx + 0x2c4]
lea eax, [ebp - 0x464]
push 0x10
push eax
call fcn.004466e0
push dword [eax]
mov byte [ebp - 4], 0x3c
call fcn.004aa5f0
add esp, 4
lea ecx, [ebp - 0x464]
call fcn.00402340
lea ecx, [ebp - 0x5d8]
mov byte [ebp - 4], 0x1b
call fcn.00463880
mov eax, dword [ebx + 0x2c4]
push 0
push dword [eax + 0x288]
push 0x402
push dword [ebx + 0x2cc]
call dword [0x4df504]
push 0
push 0
push 0xf0
push dword [ebx + 0x268]
call dword [0x4df5e0]
test eax, eax
je 0x49989e
cmp byte [ebx + 0x2c8], 0
mov byte [ebp - 0x454], 1
jne 0x4998a5
mov byte [ebp - 0x454], 0
push 0
push 0
push 0x147
push dword [ebx + 0x260]
call dword [0x4df5e0]
push 0
push 0
push 0x147
push dword [ebx + 0x264]
mov dword [ebp - 0x46c], eax
call dword [0x4df5e0]
push 0
push 0
push 0xf0
push dword [ebx + 0x26c]
mov dword [ebp - 0x474], eax
call dword [0x4df5e0]
push dword [ebp - 0x46c]
test eax, eax
mov ecx, ebx
push dword [ebp - 0x474]
setne al
movzx eax, al
push eax
push dword [ebp - 0x454]
push dword [ebp - 0x45c]
push dword [ebp - 0x450]
call fcn.00496670
mov ecx, dword [ebx + 0x2c4]
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.00445750
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x15
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498c20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x498c20
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
call fcn.004b52d9
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
int3