Function at 0x4d8e70
Capabilities:
Check if file exists
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x862845
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [esp + 0x280]
mov ebx, ecx
mov ecx, dword [esp + 0x284]
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], 0
call fcn.004d86f0
xor ebp, ebp
mov dword [esp + 0x278], ebp
mov dword [ebx], fcn.004cf7c0
mov dword [ebx + 0xc], 0x4087bc
mov dword [ebx + 0x10], 0x4087a0
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp byte [eax + 0xa0c], 0
lea ecx, [eax + 0xa11]
mov dword [esp + 0x24], eax
mov byte [esp + 0x2e], 0
mov dword [esp + 0x28], ecx
je 0x4d8fec
push 0x88
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 1
cmp edi, ebp
je 0x4d8f55
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, edi
call fcn.004d1b00
mov ebp, eax
push 0x408790
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 0x40]
mov byte [esp + 0x27c], 2
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8fa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d8fc2
mov dword [eax + 8], ebp
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d8fe2
mov dword [ecx], eax
jmp 0x4d8fe5
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa0e], 0
je 0x4d90d4
push 0x88
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x278], 3
test esi, esi
je 0x4d903b
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, esi
call fcn.004d1c90
mov ebp, eax
jmp 0x4d903d
xor ebp, ebp
push 0x408774
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x70]
mov byte [esp + 0x27c], 4
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d9090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d90aa
mov dword [eax + 8], ebp
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d90ca
mov dword [ecx], eax
jmp 0x4d90cd
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa08], 0
je 0x4d91bc
push 0x88
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 5
test edi, edi
je 0x4d9123
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, edi
call fcn.004d1e40
mov ebp, eax
jmp 0x4d9125
xor ebp, ebp
push 0x408768
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x58]
mov byte [esp + 0x27c], 6
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d9178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d9192
mov dword [eax + 8], ebp
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d91b2
mov dword [ecx], eax
jmp 0x4d91b5
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa09], 0
je 0x4d92a4
push 0x88
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 7
test edi, edi
je 0x4d920b
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, edi
call fcn.004d1fd0
mov ebp, eax
jmp 0x4d920d
xor ebp, ebp
push 0x408730
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x70]
mov byte [esp + 0x27c], 8
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d9260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d927a
mov dword [eax + 8], ebp
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d929a
mov dword [ecx], eax
jmp 0x4d929d
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa0a], 0
je 0x4d938c
push 0x88
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x278], 9
test esi, esi
je 0x4d92f3
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, esi
call fcn.004d2160
mov ebp, eax
jmp 0x4d92f5
xor ebp, ebp
push 0x4086f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x70]
mov byte [esp + 0x27c], 0xa
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d9348
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d9362
mov dword [eax + 8], ebp
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d9382
mov dword [ecx], eax
jmp 0x4d9385
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa0b], 0
je 0x4d94bf
push 0x88
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0xb
test edi, edi
je 0x4d93db
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, edi
call fcn.004d22f0
mov ebp, eax
jmp 0x4d93dd
xor ebp, ebp
push 0x408698
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x70]
mov byte [esp + 0x27c], 0xc
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d9430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x40868c
lea ecx, [esp + 0x18]
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x58]
mov byte [esp + 0x27c], 0xd
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d947b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d9495
mov dword [eax + 8], ebp
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d94b5
mov dword [ecx], eax
jmp 0x4d94b8
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa0d], 0
je 0x4d9658
push 0x88
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x278], 0xe
test esi, esi
je 0x4d950e
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x402a88
call fcn.004a8f10
mov ecx, esi
call fcn.004d2480
mov esi, eax
jmp 0x4d9510
xor esi, esi
push 0x408670
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x70]
mov byte [esp + 0x27c], 0xf
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d9563
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x408610
lea ecx, [esp + 0x18]
call fcn.004a8f10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x70]
mov byte [esp + 0x27c], 0x10
call fcn.004b34a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d95ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [ebx + 0x7c]
lea ecx, [ebx + 0x78]
call fcn.005dfd30
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax]
test eax, eax
je 0x4d95c8
mov dword [eax + 8], esi
mov dword [ebx + 0x88], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [ebx + 0x7c]
inc dword [ebx + 0x80]
test ecx, ecx
je 0x4d95e8
mov dword [ecx], eax
jmp 0x4d95eb
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0xa0d], 0
je 0x4d9658
push 0x88
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x278], 0x11
test esi, esi
je 0x4d9648
push 0x10000
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4085e8
call fcn.004a8f10
mov ecx, esi
call fcn.004d2610
mov byte [esp + 0x278], 0
mov edi, eax
jmp 0x4d96f6
xor eax, eax
mov byte [esp + 0x278], al
mov edi, eax
jmp 0x4d96f6
push 0x88
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x12
test edi, edi
je 0x4d96bb
push 0x20
push 0x10000
push 0x4085e8
lea ecx, [esp + 0x20]
call fcn.004a8f10
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4085cc
push eax
push ecx
mov byte [esp + 0x290], 0x13
mov dword [esp + 0x30], 1
call fcn.004af3d0
add esp, 0xc
mov ecx, edi
call fcn.004d2610
jmp 0x4d96bd
xor eax, eax
test byte [esp + 0x18], 1
mov edi, eax
mov dword [esp + 0x278], 0
je 0x4d96f6
mov eax, dword [esp + 0x14]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d96f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x40b9a4
push 0x40b4f4
mov ecx, edi
call fcn.004cd970
push 0x48b790
push 0x40b4f4
mov ecx, edi
call fcn.004cd970
mov ebp, dword [ebx + 0x94]
lea esi, [ebx + 0x90]
mov ecx, esi
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9737
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov ebx, 1
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9756
mov dword [ecx], eax
jmp 0x4d9758
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 4], eax
cmp byte [ecx + 0xa0e], 0
push 0x88
je 0x4d97c5
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x15
test edi, edi
je 0x4d97b5
push 0x10000
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4085a8
call fcn.004a8f10
mov ecx, edi
call fcn.004d27a0
mov byte [esp + 0x278], 0
mov edi, eax
jmp 0x4d985b
xor eax, eax
mov byte [esp + 0x278], al
mov edi, eax
jmp 0x4d985b
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x16
test edi, edi
je 0x4d9820
push 0x20
push 0x10000
push 0x4085a8
lea ecx, [esp + 0x20]
call fcn.004a8f10
or dword [esp + 0x20], 2
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push 0x4085cc
push eax
push edx
mov byte [esp + 0x290], 0x17
call fcn.004af3d0
add esp, 0xc
mov ecx, edi
call fcn.004d27a0
jmp 0x4d9822
xor eax, eax
test byte [esp + 0x18], 2
mov edi, eax
mov dword [esp + 0x278], 0
je 0x4d985b
mov eax, dword [esp + 0x14]
and dword [esp + 0x18], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d985b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4075ec
push 0x40b4f4
mov ecx, edi
call fcn.004cd970
push 0x48b790
push 0x40b4f4
mov ecx, edi
call fcn.004cd970
mov ebp, dword [esi + 4]
mov ecx, esi
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9893
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d98ad
mov dword [ecx], eax
jmp 0x4d98af
mov dword [esi], eax
push 0x88
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x19
test edi, edi
je 0x4d98f4
push 0x20
push 0x10000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x408584
call fcn.004a8f10
mov ecx, edi
call fcn.004d2930
mov edi, eax
jmp 0x4d98f6
xor edi, edi
push 0x48b790
push 0x40b4d4
mov ecx, edi
mov byte [esp + 0x280], 0
call fcn.004cd970
push 0x48b790
push 0x40b524
mov ecx, edi
call fcn.004cd970
push 0x48b790
push 0x40780c
mov ecx, edi
call fcn.004cd970
push 0x48b790
push 0x40b4d4
mov ecx, edi
call fcn.004cd970
push 0x40bee4
push 0x48b790
mov ecx, edi
call fcn.004cd970
push 0x4075cc
push 0x48b790
mov ecx, edi
call fcn.004cd970
push 0x4075bc
push 0x48b790
mov ecx, edi
call fcn.004cd970
mov ebp, dword [esi + 4]
mov ecx, esi
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d998b
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d99a5
mov dword [ecx], eax
jmp 0x4d99a7
mov dword [esi], eax
push 0x88
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x1a
test edi, edi
je 0x4d99ec
push 0x10000
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x408560
call fcn.004a8f10
mov ecx, edi
call fcn.004d2ac0
mov edi, eax
jmp 0x4d99ee
xor edi, edi
push 0x40798c
push 0x40b4b4
mov ecx, edi
mov byte [esp + 0x280], 0
call fcn.004cd970
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0xa13], 0
jne 0x4d9a21
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0
je 0x4d9b0f
push 0x40b6d4
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40789c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078ac
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078bc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078cc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078dc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078ec
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078fc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40790c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40791c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40792c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40793c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40795c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40794c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
cmp byte [ebp + 0xa13], 0
jne 0x4d9b22
mov edx, dword [esp + 0x28]
cmp byte [edx + 1], 0
je 0x4d9b44
push 0x40796c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40797c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
mov ebp, dword [esi + 4]
mov ecx, esi
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9b5a
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9b74
mov dword [ecx], eax
jmp 0x4d9b76
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
xor edi, edi
push 0x88
mov dword [0x8d4418], edi
mov dword [0x8d441c], eax
call fcn.007c8529
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov byte [esp + 0x278], 0x1b
cmp ebx, edi
je 0x4d9c2f
mov ecx, dword [esp + 0x24]
mov al, byte [ecx + 0xa10]
test al, al
je 0x4d9bc2
mov ebp, 0x10000
jmp 0x4d9bcc
mov edi, 0x10000
mov ebp, 0x20
test al, al
je 0x4d9bd7
mov eax, 0x408530
jmp 0x4d9c17
push 0x408530
lea ecx, [esp + 0x2c]
call fcn.004a8f10
or dword [esp + 0x18], 4
push 0x4085cc
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x284], 0x1c
call fcn.004af3d0
add esp, 0xc
or dword [esp + 0x18], 8
mov eax, dword [eax]
mov dword [esp + 0x278], 0x1d
push ebp
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004a8f10
mov ecx, ebx
call fcn.004d2c50
mov edi, eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x278], 0x1e
test bl, 8
je 0x4d9c6a
mov eax, dword [esp + 0x14]
and ebx, 0xfffffff7
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d9c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x278], 0
test bl, 4
je 0x4d9ca1
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d9ca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x40be84
push 0x40bf24
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40be24
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40be34
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4079bc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
mov ebp, dword [esi + 4]
mov ecx, esi
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9d0c
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov ebx, 1
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9d2b
mov dword [ecx], eax
jmp 0x4d9d2d
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x20
test edi, edi
je 0x4d9d9c
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4084e0
call fcn.004a8f10
lea ecx, [esp + 0x60]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 8]
push 0x20
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.004cf180
mov ebp, eax
jmp 0x4d9d9e
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9dbc
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9dd6
mov dword [ecx], eax
jmp 0x4d9dd8
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x21
test edi, edi
je 0x4d9e47
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x408490
call fcn.004a8f10
lea edx, [esp + 0x60]
push edx
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
push 0x20
push 0
lea eax, [esp + 0x54]
push eax
mov ecx, edi
mov dword [esp + 0x64], edx
call fcn.004cf180
mov ebp, eax
jmp 0x4d9e49
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9e67
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9e81
mov dword [ecx], eax
jmp 0x4d9e83
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x22
test edi, edi
je 0x4d9ef2
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x408440
call fcn.004a8f10
lea ecx, [esp + 0x60]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 8]
push 0x20
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.004cf180
mov ebp, eax
jmp 0x4d9ef4
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9f12
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9f2c
mov dword [ecx], eax
jmp 0x4d9f2e
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x23
test edi, edi
je 0x4d9f9d
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4083f0
call fcn.004a8f10
lea edx, [esp + 0x60]
push edx
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
push 0x20
push 0
lea eax, [esp + 0x54]
push eax
mov ecx, edi
mov dword [esp + 0x64], edx
call fcn.004cf180
mov ebp, eax
jmp 0x4d9f9f
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4d9fbd
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4d9fd7
mov dword [ecx], eax
jmp 0x4d9fd9
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x24
test edi, edi
je 0x4da048
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4083a0
call fcn.004a8f10
lea ecx, [esp + 0x60]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 8]
push 0x20
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.004cf180
mov ebp, eax
jmp 0x4da04a
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4da068
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4da082
mov dword [ecx], eax
jmp 0x4da084
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x25
test edi, edi
je 0x4da0f3
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x408350
call fcn.004a8f10
lea edx, [esp + 0x60]
push edx
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
push 0x20
push 0
lea eax, [esp + 0x54]
push eax
mov ecx, edi
mov dword [esp + 0x64], edx
call fcn.004cf180
mov ebp, eax
jmp 0x4da0f5
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4da113
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4da12d
mov dword [ecx], eax
jmp 0x4da12f
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x26
test edi, edi
je 0x4da19e
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x408300
call fcn.004a8f10
lea ecx, [esp + 0x60]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 8]
push 0x20
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.004cf180
mov ebp, eax
jmp 0x4da1a0
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4da1be
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4da1d8
mov dword [ecx], eax
jmp 0x4da1da
mov dword [esi], eax
push 0x90
mov dword [esi + 4], eax
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x27
test edi, edi
je 0x4da249
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4082b0
call fcn.004a8f10
lea edx, [esp + 0x60]
push edx
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
push 0x20
push 0
lea eax, [esp + 0x54]
push eax
mov ecx, edi
mov dword [esp + 0x64], edx
call fcn.004cf180
mov ebp, eax
jmp 0x4da24b
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4da269
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
add dword [esi + 8], ebx
test ecx, ecx
je 0x4da283
mov dword [ecx], eax
jmp 0x4da285
mov dword [esi], eax
xor edi, edi
mov dword [esi + 4], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
push 0x200
lea ecx, [esp + 0x70]
push edi
push ecx
mov byte [esp + 0x284], 0x28
mov dword [esp + 0x20], 0x200
call fcn.00802690
add esp, 0xc
push 0x408260
lea ecx, [esp + 0x2c]
call fcn.004a8f10
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push 0x4074ec
push eax
mov byte [esp + 0x284], 0x29
call fcn.004b1a10
or dword [esp + 0x24], 0x10
push 0x408240
push eax
lea ecx, [esp + 0x30]
mov ebx, 0x2a
push ecx
mov byte [esp + 0x290], bl
call fcn.004af3d0
add esp, 0x18
mov eax, dword [eax]
or dword [esp + 0x18], 0x20
push 0x20019
push eax
push DirectSoundEnumerateW
lea ecx, [esp + 0x58]
mov dword [esp + 0x284], 0x2b
call fcn.004afb40
test eax, eax
jne 0x4da36e
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x70]
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.004afbc0
test eax, eax
jne 0x4da36e
lea ecx, [esp + 0x6c]
push ecx
call fcn.005cb420
add esp, 4
cmp edx, 0x10000
ja 0x4da36e
jb 0x4da367
cmp eax, 0x30000
jae 0x4da36e
mov byte [esp + 0x2f], 1
jmp 0x4da373
mov byte [esp + 0x2f], 0
mov dword [esp + 0x278], ebx
mov ebx, dword [esp + 0x18]
test bl, 0x20
je 0x4da3aa
mov eax, dword [esp + 0x1c]
and ebx, 0xffffffdf
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4da3aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x278], 0x29
test bl, 0x10
je 0x4da3e1
mov eax, dword [esp + 0x20]
and ebx, 0xffffffef
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da3e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2f], 0
je 0x4da4a4
push 0x90
call fcn.007c8529
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
mov byte [esp + 0x278], 0x2c
cmp ebp, edi
je 0x4da463
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.004a9b50
lea ecx, [esp + 0x44]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.005c4ec0
mov edx, dword [eax]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
push 0x20
push 0
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], edx
mov eax, dword [eax + 0xc]
push ecx
mov ecx, ebp
mov dword [esp + 0x74], eax
call fcn.004cf180
mov ebp, eax
jmp 0x4da465
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0x29
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4da483
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
inc dword [esi + 8]
test ecx, ecx
je 0x4da49d
mov dword [ecx], eax
jmp 0x4da49f
mov dword [esi], eax
mov dword [esi + 4], eax
xor edi, edi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0x28
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4da4cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x278], 0
cmp eax, edi
je 0x4da4e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x90
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x2d
test edi, edi
je 0x4da54f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4081f0
call fcn.004a8f10
lea ecx, [esp + 0x40]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
push 0x20
push 0
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], edx
mov eax, dword [eax + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x74], eax
call fcn.004cf180
mov ebp, eax
jmp 0x4da551
xor ebp, ebp
mov edi, dword [esi + 4]
mov ecx, esi
mov byte [esp + 0x278], 0
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4da56f
mov dword [eax + 8], ebp
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov ebx, 1
add dword [esi + 8], ebx
test ecx, ecx
je 0x4da58e
mov dword [ecx], eax
jmp 0x4da590
mov dword [esi], eax
mov ebp, dword [esp + 0x24]
mov dword [esi + 4], eax
cmp byte [ebp + 0x457], 0
je 0x4da65d
cmp byte [ebp + 0x458], 0
je 0x4da65d
mov eax, dword [ebp + 0x500]
cmp eax, 5
je 0x4da5d9
cmp eax, 6
je 0x4da5d9
cmp eax, 0xb
je 0x4da5d9
cmp eax, 7
je 0x4da5d9
cmp eax, 0xd
je 0x4da5d9
cmp eax, 0xc
jne 0x4da65d
push 0x90
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x278], 0x2e
test edi, edi
je 0x4da643
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x402c40
call fcn.004a8f10
lea edx, [esp + 0x40]
push edx
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0xc]
push 0x20
push 0
lea eax, [esp + 0x64]
push eax
mov ecx, edi
mov dword [esp + 0x74], edx
call fcn.004cf180
jmp 0x4da645
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x27c], 0
mov dword [esp + 0x24], eax
call fcn.00670ed0
mov eax, dword [ebp + 0xf40]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
test eax, eax
je 0x4da90c
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 8]
cmp byte [edi], 0
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
jne 0x4da716
mov eax, dword [edi + 0x10]
mov ecx, 0x4081c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4da6b8
test dx, dx
je 0x4da6b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4da6b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4da692
xor eax, eax
jmp 0x4da6bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4da6cb
mov byte [esp + 0x2e], 1
cmp dword [edi + 4], 1
jne 0x4da712
mov eax, dword [edi + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.005c7f50
add esp, 8
mov eax, dword [eax]
or dword [esp + 0x18], 0x40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0x2f
call fcn.004a8f10
mov ecx, dword [esp + 0x14]
or dword [esp + 0x18], 0x80
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4da716
xor bl, bl
jmp 0x4da718
mov bl, 1
test byte [esp + 0x18], 0x80
je 0x4da747
mov eax, dword [esp + 0x14]
and dword [esp + 0x18], 0xffffff7f
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4da747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esp + 0x18], 0x40
mov dword [esp + 0x278], 0
je 0x4da77e
mov eax, dword [esp + 0x20]
and dword [esp + 0x18], 0xffffffbf
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da77e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4da8f6
mov eax, dword [edi + 0x54]
test eax, eax
jne 0x4da794
mov ebx, 0x10000
jmp 0x4da7ac
cmp eax, 2
jne 0x4da7a7
mov ebp, dword [edi + 0x58]
xor ebx, ebx
shld ebx, ebp, 0x10
shl ebp, 0x10
jmp 0x4da7ae
mov ebx, 0x20
xor ebp, ebp
mov ecx, dword [esp + 0x24]
movzx eax, cx
cdq
add ebp, eax
mov eax, dword [edi + 4]
adc ebx, edx
inc ecx
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4da80f
push 0x90
call fcn.007c8529
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x278], 0x30
test eax, eax
je 0x4da888
mov eax, dword [edi + 8]
push ebx
push ebp
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov ebx, esp
push eax
call fcn.004a9b50
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004cf010
jmp 0x4da88a
cmp eax, 1
jne 0x4da8f6
push 0x90
call fcn.007c8529
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x278], 0x31
test eax, eax
je 0x4da888
mov eax, dword [edi + 0x10]
push ebx
push ebp
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov ebx, esp
push eax
call fcn.004a9b50
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
mov dword [esp + 0x48], esp
mov ebx, esp
push eax
mov byte [esp + 0x28c], 0x32
call fcn.004a9b50
add esp, 4
lea ecx, [edi + 0x14]
add eax, 0x10
push ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx], eax
mov byte [esp + 0x28c], 0x31
call fcn.004ce0d0
jmp 0x4da88a
xor eax, eax
mov ebx, eax
mov byte [esp + 0x278], 0
test ebx, ebx
je 0x4da8f6
add edi, 0x24
push edi
mov ecx, ebx
call fcn.004ce0b0
mov edi, dword [esp + 0x30]
mov ebp, dword [edi + 0xac]
lea ecx, [edi + 0xa8]
call fcn.005dfd30
mov eax, dword [edi + 0xb8]
mov ecx, dword [eax]
test eax, eax
je 0x4da8c7
mov dword [eax + 8], ebx
mov dword [edi + 0xb8], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [edi + 0xac]
inc dword [edi + 0xb0]
test ecx, ecx
je 0x4da8ea
mov dword [ecx], eax
jmp 0x4da8f0
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], eax
cmp dword [esp + 0x28], 0
jne 0x4da673
cmp byte [esp + 0x2e], 0
jne 0x4dab0d
push 0x90
call fcn.007c8529
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
mov byte [esp + 0x278], 0x33
test edi, edi
je 0x4da97b
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x408170
call fcn.004a8f10
lea edx, [esp + 0x40]
push edx
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0xc]
push 0x10000
push 0
lea eax, [esp + 0x64]
push eax
mov ecx, edi
mov dword [esp + 0x74], edx
call fcn.004cf180
mov edi, eax
jmp 0x4da97d
xor edi, edi
push 0x40b6d4
push 0x40b4b4
mov ecx, edi
mov byte [esp + 0x280], 0
call fcn.004cd970
push 0x40789c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078ac
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078bc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078cc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078dc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078ec
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x4078fc
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40790c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40791c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40792c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40793c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40795c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40794c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40796c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40797c
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40bf24
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40be24
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40be34
mov ecx, edi
call fcn.004cd970
push 0x40be84
push 0x40b4b4
mov ecx, edi
call fcn.004cd970
mov ebx, dword [esi]
mov ecx, esi
call fcn.005dfd30
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x4daaee
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov dword [eax + 4], 0
mov dword [eax], ebx
mov ecx, dword [esi]
inc dword [esi + 8]
test ecx, ecx
je 0x4dab08
mov dword [ecx + 4], eax
jmp 0x4dab0b
mov dword [esi + 4], eax
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0080262b
add esp, 0x268
ret 8