Function at 0x41fd16
Capabilities:
Get disk information
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x128
push ebx
push esi
mov dword [ebp + 0x50], ecx
xor ebx, ebx
push edi
lea ecx, [ebp + 0x7c]
mov dword [ebp - 4], ebx
call fcn.0040b430
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x22
mov ecx, dword [0x4a5e00]
mov dword [ebp + 0x48], ecx
jne 0x41fd63
cmp word [eax + 2], 0x2e
jne 0x41fd63
cmp word [eax + 4], 0x22
jne 0x41fd63
add eax, 6
cmp word [eax], 0x23
jne 0x41fd63
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x48], ecx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x40], ebx
call fcn.00432cb7
mov eax, dword [ebp + 0x7c]
mov ax, word [eax]
cmp ax, 0x2d
mov byte [ebp + 0x57], bl
mov byte [ebp + 0x56], bl
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x4c], ebx
mov cl, 0x2a
jne 0x41fd90
mov cl, al
movsx edi, cl
movzx eax, ax
jmp 0x41ff23
add dword [ebp + 0x7c], 2
push 3
lea eax, [ebp + 0x7c]
push eax
push 0x491248
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41fdbf
or dword [ebp + 0x4c], 8
jmp 0x41ff1d
push ebx
lea eax, [ebp + 0x7c]
push eax
push 0x48f6be
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41fdde
or dword [ebp + 0x4c], 4
jmp 0x41ff1d
push 7
lea eax, [ebp + 0x7c]
push eax
push str.sysinit
call fcn.004349fd
add esp, 0xc
test al, al
jne 0x41ff1d
mov eax, dword [ebp + 0x7c]
movzx eax, word [eax]
cmp edi, eax
jne 0x41ff33
add dword [ebp + 0x7c], 2
push 3
lea eax, [ebp + 0x7c]
push eax
push 0x48f534
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41fe2b
or byte [ebp + 0x57], 1
jmp 0x41ff1d
push 1
lea eax, [ebp + 0x7c]
push eax
push 0x4918e8
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41fe4b
or byte [ebp + 0x56], 1
jmp 0x41ff1d
push 5
lea eax, [ebp + 0x7c]
push eax
push str.local
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41fe6f
or dword [ebp + 0x4c], 0x10
or dword [ebp + 0x30], 0x10
jmp 0x41ff1d
push 8
lea eax, [ebp + 0x7c]
push eax
push str.EnviMode
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41fe93
or dword [ebp + 0x4c], 0x20
or dword [ebp + 0x30], 0x20
jmp 0x41ff1d
push 3
lea eax, [ebp + 0x7c]
push eax
push 0x491930
call fcn.004349fd
add esp, 0xc
test al, al
je 0x41feb0
or dword [ebp + 0x4c], 0x40
jmp 0x41ff1d
push 5
push dword [ebp + 0x7c]
push str.logs:
call fcn.0042ecb0
add esp, 0xc
test al, al
je 0x41ff2d
add dword [ebp + 0x7c], 0xa
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x68], eax
push 1
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x68]
push eax
mov dword [ebp + 0x58], ebx
call fcn.00414db6
add esp, 0xc
cmp dword [ebp + 0x58], ebx
mov dword [ebp + 0x7c], eax
jle 0x41ff15
push dword [ebp + 0x58]
lea ecx, [ebp + 0x44]
push dword [ebp + 0x68]
call fcn.0043cd19
mov ecx, dword [ebp + 0x50]
push 1
push ebx
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x44]
call fcn.00439f34
lea ecx, [ebp + 0x44]
call fcn.0042dd2d
lea ecx, [ebp + 0x7c]
call fcn.0040b430
mov eax, dword [ebp + 0x7c]
movzx eax, word [eax]
cmp edi, eax
je 0x41fd9b
jmp 0x41ff37
sub dword [ebp + 0x7c], 4
jmp 0x41ff37
sub dword [ebp + 0x7c], 2
push dword [ebp + 0x50]
call fcn.0040e21e
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x22
push 5
push eax
mov esi, str.map:
push esi
sete byte [ebp + 0x63]
mov dword [ebp + 0x64], ebx
call fcn.0042ecb0
add esp, 0x10
test al, al
jne 0x41ff76
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2a
jne 0x41ff76
add dword [ebp + 0x7c], 2
mov dword [ebp + 0x64], 1
mov edi, dword [ebp + 0x7c]
push 0x21
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x7c]
push eax
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x58], ebx
call fcn.00414db6
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x7c]
mov cx, word [eax]
add esp, 0xc
cmp cx, 0x22
mov edx, eax
jne 0x41ffa5
lea edx, [eax + 2]
cmp word [edx], 0x5c
jne 0x41ffb6
cmp word [edx + 2], 0x5c
mov byte [ebp + 0x3b], 1
jne 0x41ffb9
mov byte [ebp + 0x3b], bl
cmp cx, 0x2a
jne 0x41ffcb
inc eax
inc eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x64], 1
lea ecx, [ebp + 0x3c]
call fcn.00432cb7
mov eax, dword [ebp + 0x44]
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp + 0x6c]
call fcn.0043cd19
mov eax, dword [ebp + 0x6c]
mov cx, word [eax]
cmp cx, 0x22
jne 0x420017
push 0x22
pop ecx
cmp cx, 0x22
je 0x420003
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x41fff3
cmp word [eax], bx
je 0x42001c
inc eax
inc eax
jmp 0x42001c
cmp cx, 0x2c
je 0x42001c
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x42000c
cmp word [eax], 0x2c
jne 0x420031
mov word [eax], bx
movzx eax, word [eax + 2]
and eax, 0xffdf
mov dword [ebp + 0x2c], eax
mov ecx, dword [ebp + 0x50]
push 1
push ebx
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x6c]
call fcn.0043b168
mov edi, dword [ebp + 0x3c]
cmp word [edi], 0x22
je 0x4200b1
lea eax, [ebp + 0x68]
push eax
mov dword [ebp + 0x68], edi
call fcn.0040415a
mov eax, dword [ebp + 0x68]
cmp word [eax], bx
pop ecx
je 0x4200b1
push edi
lea ecx, [ebp + 0x6c]
call fcn.0043cd64
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 3]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00432cfe
mov eax, dword [ebp + 0x3c]
mov word [eax + edi*2 + 4], bx
mov eax, dword [ebp + 0x3c]
push edi
push dword [ebp + 0x6c]
add eax, 2
push eax
call fcn.00404142
mov eax, dword [ebp + 0x3c]
mov word [eax + edi*2 + 2], 0x22
mov eax, dword [ebp + 0x3c]
mov word [eax], 0x22
mov edi, dword [ebp + 0x3c]
add esp, 0xc
push 0x20
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x7c]
push eax
mov dword [ebp + 0x7c], edi
call fcn.00414db6
mov ecx, dword [ebp + 0x50]
add esp, 0xc
push 1
push ebx
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x44]
call fcn.0043b168
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x3c]
call fcn.00432d25
mov eax, dword [ebp + 0x3c]
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x7c], eax
call fcn.0042dd2d
mov edi, dword [ebp + 0x7c]
push 5
push edi
push esi
call fcn.0042ecb0
add esp, 0xc
test al, al
je 0x42010d
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x7c], edi
mov eax, dword [ebp + 0x7c]
mov esi, dword [ebp + 0x58]
mov edi, eax
lea eax, [eax + esi*2]
mov cx, word [eax]
mov word [eax], bx
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
mov dword [ebp + 0x6c], edi
mov word [ebp + 0x68], cx
mov dword [ebp - 0x14], ebx
je 0x4201af
mov ecx, dword [ebp + 0x7c]
add eax, 0xa
mov word [ecx + esi*2], bx
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x7c]
push eax
mov dword [ebp - 0x10], ebx
call fcn.004358e8
mov eax, dword [ebp - 0x10]
cmp eax, ebx
pop ecx
pop ecx
jg 0x420162
mov esi, 0x80070057
jmp 0x420b3b
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 6
push eax
mov dword [ebp + 0x40], eax
call edi
cmp eax, ebx
jne 0x42017f
xor esi, esi
inc esi
jmp 0x420b3b
mov ecx, dword [eax]
push eax
mov dword [ebp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0x34]
cmp eax, ebx
jle 0x420177
add eax, 4
push eax
push ebx
push ebx
push 6
push dword [ebp + 0x40]
call edi
cmp eax, ebx
mov dword [ebp + 0x5c], eax
je 0x420177
mov edi, dword [ebp + 0x6c]
add eax, 4
mov dword [ebp + 0x40], eax
lea ecx, [ebp - 0xc]
call fcn.00432cb7
cmp word [edi], 0x2a
mov eax, edi
jne 0x4201c2
lea eax, [edi + 2]
push 0x2a
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, ebx
je 0x420288
cmp word [edi + 2], 0x2a
jne 0x4201de
xor edi, edi
cmp edi, ebx
je 0x420288
mov eax, dword [ebp + 0x6c]
mov esi, edi
sub esi, eax
sar esi, 1
cmp word [eax + esi*2 - 2], 0x22
mov dword [ebp + 0x58], esi
jne 0x4201fe
dec esi
mov dword [ebp + 0x58], esi
inc edi
inc edi
cmp word [edi], bx
mov dword [ebp + 0x70], edi
je 0x42022a
xor ecx, ecx
mov cx, word [edi]
mov eax, ecx
call fcn.00402b57
test al, al
jne 0x420225
cmp cx, 0x22
je 0x420225
inc edi
inc edi
cmp word [edi], bx
jne 0x420208
cmp edi, dword [ebp + 0x70]
jne 0x420232
xor esi, esi
inc esi
jmp 0x420b33
cmp byte [ebp + 0x63], bl
je 0x4202df
cmp word [edi], 0x22
jne 0x4202df
mov byte [ebp + 0x63], 1
mov word [edi], 0x20
push dword [ebp + 0x70]
lea ecx, [ebp - 0xc]
call fcn.0043cdc0
sub dword [ebp + 0x70], 2
cmp byte [ebp + 0x63], bl
mov edx, dword [ebp + 0x70]
je 0x42026c
mov word [edx], 0x22
inc edx
inc edx
cmp edx, edi
jae 0x420288
mov ecx, edi
sub ecx, edx
dec ecx
shr ecx, 1
inc ecx
shr ecx, 1
mov eax, 0x200020
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ax, word [ebp + 0x68]
mov ecx, dword [ebp + 0x44]
push esi
push dword [ebp + 0x6c]
mov word [ecx], ax
lea ecx, [ebp - 8]
call fcn.0043cd19
mov eax, dword [ebp - 8]
mov word [eax + esi*2], bx
mov eax, dword [ebp - 8]
mov dword [ebp + 0x7c], eax
xor esi, esi
cmp word [eax], 0x22
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
jne 0x4202ff
add eax, 2
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x70], eax
push 0x22
lea eax, [ebp + 0x68]
call fcn.0043291a
mov eax, dword [ebp + 0x68]
pop ecx
mov cx, word [eax]
cmp cx, 0x22
jne 0x4202e7
or dword [ebp + 0x64], 0x10
jmp 0x4202ec
mov byte [ebp + 0x63], bl
jmp 0x42024e
cmp cx, bx
je 0x4202f1
mov word [eax], bx
inc eax
inc eax
cmp dword [ebp + 0x64], ebx
je 0x42037e
mov dword [ebp + 0x6c], eax
jmp 0x42037e
cmp dword [ebp + 0x64], ebx
je 0x42037e
mov edi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push ebx
push eax
call edi
cmp eax, ebx
jne 0x420317
mov eax, dword [ebp + 0x70]
push 0x23
push ebx
push eax
call edi
cmp eax, ebx
mov dword [ebp + 0x6c], eax
je 0x42038c
cmp word [eax], 0x23
mov ecx, eax
jne 0x420334
inc ecx
inc ecx
cmp word [ecx], 0x23
je 0x42032c
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0041030b
add esp, 4
cmp al, bl
jne 0x42034f
mov dword [ebp + 0x6c], 0x48e984
jmp 0x420363
inc ecx
xor eax, eax
inc ecx
mov ax, word [ecx]
push eax
call fcn.0041030b
add esp, 4
test al, al
jne 0x42034f
mov cx, word [ecx]
cmp cx, bx
je 0x42037e
cmp cx, 0x7c
je 0x42037e
cmp cx, 0x3a
je 0x42037e
mov dword [ebp + 0x6c], 0x48e984
cmp dword [ebp + 0x6c], ebx
je 0x42038c
mov eax, dword [ebp + 0x6c]
cmp word [eax], 0x23
je 0x420393
mov dword [ebp + 0x6c], 0x48e984
mov edi, dword [ebp + 0x6c]
cmp word [edi], bx
je 0x4203c1
lea eax, [edi + 2]
cmp word [eax], 0x23
jne 0x4203c1
mov edi, eax
lea eax, [edi + 2]
inc esi
cmp word [eax], 0x23
mov dword [ebp + 0x6c], edi
je 0x4203a4
cmp esi, ebx
jle 0x4203c1
lea eax, [ebp + 0x28]
push eax
call fcn.0040417e
pop ecx
cmp byte [ebp + 0x57], bl
je 0x420568
push dword [ebp + 0x7c]
call fcn.00410141
pop ecx
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x7c], eax
call fcn.00432b41
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x68]
push eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x68], esi
call fcn.0040415a
mov eax, dword [ebp + 0x68]
pop ecx
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x70]
call fcn.0043cd19
mov eax, dword [ebp + 0x70]
cmp word [eax], 0x26
je 0x420438
mov ecx, dword [ebp + 0x50]
cmp byte [ecx + 0xb], bl
jne 0x420438
lea ecx, [ebp + 0x18]
push ecx
push eax
call fcn.0043bc4c
pop ecx
pop ecx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], eax
jmp 0x4204ba
mov esi, 0x4a6658
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x50]
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x70]
call fcn.0040c526
cmp eax, ebx
mov dword [ebp + 0x48], eax
jne 0x420478
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0x70]
call fcn.0042dd2d
lea ecx, [ebp + 0x18]
call fcn.0042dd2d
xor esi, esi
inc esi
jmp 0x420b2b
mov edi, dword [eax + 0xc]
and edi, 0x3fffffff
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], edi
call fcn.00432b85
mov eax, dword [ebp + 0x48]
push edi
push dword [eax + 4]
push dword [ebp + 0x18]
call fcn.0047a010
mov eax, dword [ebp + 0x18]
push 0x10
add edi, eax
push ebx
push edi
call fcn.00479cf0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x4a4280], bl
jge 0x4204c9
mov byte [0x4a4280], 1
lea eax, [ebp + 0x18]
push 1
push eax
call fcn.00471542
call fcn.0040df18
push ebx
push ebx
push dword [ebp + 0x18]
mov esi, eax
call fcn.0040df73
push ebx
push dword [ebp + 0x50]
lea eax, [ebp + 0x18]
push eax
call fcn.0041fa31
push ebx
push dword [ebp + 0x18]
movzx edi, si
call fcn.0040deff
inc eax
inc eax
push eax
push edi
push dword [ebp + 0x18]
call fcn.0040df73
push ebx
push dword [ebp + 0x30]
lea eax, [ebp + 0x18]
push dword [ebp + 0x24]
push eax
push edi
call fcn.0040dfac
mov esi, dword [ebp + 0x18]
add esp, 0x48
push 0xffffffffffffffff
push str.mem
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x18], ebx
call fcn.0043cd32
mov eax, dword [eax]
mov ecx, dword [ebp + 0x50]
push ebx
shl edi, 0x10
or edi, dword [ebp + 0x4c]
push ebx
or edi, 0x40
push edi
push eax
push dword [ebp + 0x28]
push esi
call fcn.0046bb79
lea ecx, [ebp + 0x48]
mov esi, eax
call fcn.0042dd2d
lea ecx, [ebp + 0x70]
call fcn.0042dd2d
lea ecx, [ebp + 0x18]
jmp 0x420683
cmp dword [ebp + 0x34], ebx
jle 0x42068d
lea ecx, [ebp + 0xc]
call fcn.00432b41
mov esi, dword [ebp + 0x34]
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.00432b85
push esi
push dword [ebp + 0x40]
mov dword [ebp + 0x14], esi
push dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
call fcn.0047a010
mov eax, dword [ebp + 0xc]
push 0x14
add eax, esi
push ebx
push eax
call fcn.00479cf0
add esp, 0x18
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [ebp + 0xc]
push 1
push eax
call fcn.00471542
call fcn.0040df18
mov dword [ebp + 0x48], eax
xor eax, eax
mov ah, byte [ebp + 0x7c]
push ebx
mov al, ah
mov edi, eax
movzx esi, di
push esi
push dword [ebp + 0xc]
call fcn.0040df73
push esi
push dword [ebp + 0x50]
lea eax, [ebp + 0xc]
push eax
call fcn.0041fa31
push edi
push dword [ebp + 0xc]
call fcn.0040deff
mov edx, dword [ebp + 0xc]
mov ecx, edi
xor ecx, 0xd
mov word [edx + eax*2], cx
mov edx, dword [ebp + 0xc]
inc eax
mov ecx, edi
xor ecx, 0xa
mov word [edx + eax*2], cx
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 + 4], di
mov ecx, dword [ebp + 0xc]
inc eax
add eax, 2
mov word [ecx + eax*2], di
movzx edi, word [ebp + 0x48]
push eax
mov eax, edi
xor eax, esi
push eax
push dword [ebp + 0xc]
call fcn.0040df73
add esp, 0x34
cmp byte [0x4a4280], bl
jge 0x420649
mov byte [0x4a4280], 1
push ebx
push dword [ebp + 0x30]
lea eax, [ebp + 0xc]
push dword [ebp + 0x24]
push eax
push edi
call fcn.0040dfac
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x50]
add esp, 0x14
push ebx
shl edi, 0x10
or edi, dword [ebp + 0x4c]
push ebx
or edi, 0x40
push edi
push dword [ebp - 8]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x28]
push eax
call fcn.0046bb79
mov esi, eax
lea ecx, [ebp + 0xc]
call fcn.0042dd2d
jmp 0x420b2b
cmp byte [ebp + 0x3b], bl
je 0x42079f
push dword [ebp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push dword [ebp + 0x7c]
mov edi, eax
call esi
lea eax, [eax + edi + 0x92a]
push eax
lea ecx, [ebp + 0x40]
call fcn.00432cd5
mov edi, dword [ebp + 0x40]
mov dword [ebp + 0x5c], edi
add edi, 0xbca
push edi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, dword [ebp + 0x28]
mov ax, word [ecx]
lea esi, [edi + 0x64a]
mov word [esi], ax
xor eax, eax
cmp word [ecx], 0x22
sete al
add eax, eax
lea ecx, [eax + ecx + 2]
add eax, esi
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x22
mov dword [ebp + 0x68], ecx
jne 0x420703
add dword [ebp + 0x7c], 2
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x5c
jne 0x420710
add dword [ebp + 0x7c], 2
mov ecx, 0x5dc
xor eax, eax
sub ecx, dword [ebp + 0x58]
mov dword [ebp + 0x48], ecx
jmp 0x42078d
mov cx, word [edi]
cmp cx, word [ebp + 0x2c]
jb 0x420782
cmp eax, dword [ebp + 0x48]
jge 0x420782
push dword [ebp + 0x7c]
push edi
push str._s_s
push dword [ebp + 0x5c]
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 0x5c]
call fcn.00479791
add esp, 0x14
test eax, eax
je 0x420782
push dword [ebp + 0x68]
push edi
push str._s_s
push dword [ebp + 0x44]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x4c]
or eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x50]
add esp, 0x10
push dword [ebp + 0x24]
push ebx
push eax
push esi
push dword [ebp + 0x5c]
call fcn.0041fb17
cmp byte [ebp + 0x56], bl
mov dword [ebp - 4], eax
je 0x420792
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x42071f
lea ecx, [ebp + 0x40]
call fcn.0042dd2d
jmp 0x420b1f
mov ax, word [edi]
cmp ax, bx
je 0x420af5
cmp ax, 0x23
mov esi, str.SCRIPT
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x40], edi
jne 0x4207d9
xor eax, eax
lea ecx, [edi + 2]
mov ax, word [ecx]
push eax
call fcn.0041030b
add esp, 4
test al, al
jne 0x4207d9
mov edi, ecx
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x64], ebx
xor eax, eax
jmp 0x4207ee
cmp ax, 0x3a
je 0x420823
cmp ax, 0x7c
je 0x4207f8
inc edi
inc edi
mov ax, word [edi]
cmp ax, bx
jne 0x4207e0
jmp 0x42085a
lea eax, [edi + 2]
cmp word [eax], bx
je 0x42085a
mov dword [ebp + 0x2c], eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004358e8
mov eax, dword [ebp + 0x2c]
mov ax, word [eax]
cmp ax, bx
pop ecx
pop ecx
je 0x420826
cmp ax, 0x7c
je 0x420826
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
cmp eax, ebx
je 0x42085a
mov word [eax], bx
mov eax, dword [ebp + 0x64]
inc eax
inc eax
mov dword [ebp + 0x64], eax
cmp word [eax], 0x7c
mov dword [ebp + 0x40], eax
je 0x420846
mov esi, eax
mov dword [ebp + 0x5c], esi
mov ax, word [esi]
cmp ax, 0x22
je 0x420855
cmp ax, 0x27
jne 0x42085a
inc esi
inc esi
mov dword [ebp + 0x5c], esi
push 0x7c
push dword [ebp + 0x40]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
mov dword [ebp + 0x64], eax
jne 0x420875
mov dword [ebp + 0x64], 0x48e984
jmp 0x42087c
mov word [eax], bx
add dword [ebp + 0x64], 2
cmp word [esi], bx
mov eax, esi
je 0x42089e
mov cx, word [eax]
cmp cx, 0x22
je 0x42089b
cmp cx, 0x27
je 0x42089b
inc eax
inc eax
cmp word [eax], bx
jne 0x420883
jmp 0x42089e
mov word [eax], bx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x58], 0x7fffffff
cmp word [eax], bx
je 0x4208c2
push 0x7c
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.00435668
add esp, 0xc
mov eax, dword [ebp + 0x64]
cmp word [eax], 0x2c
jne 0x4208da
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004358e8
pop ecx
pop ecx
cmp dword [ebp + 0x58], ebx
jle 0x4209aa
cmp dword [ebp + 0x44], ebx
jl 0x4209aa
mov eax, dword [ebp + 0x68]
mov di, word [eax]
mov esi, dword [ebp + 0x48]
mov word [eax], bx
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
mov dword [ebp + 0x34], ebx
je 0x42091a
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x34], esi
je 0x420470
mov eax, dword [ebp + 0x68]
mov word [eax], di
call fcn.0040df18
xor ecx, ecx
mov ch, al
mov dword [ebp + 0x40], eax
mov cl, al
movzx edi, cx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x2c], edi
shl edi, 0x10
lea ecx, [ebp]
mov dword [ebp + 0x70], edi
call fcn.00432b41
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x48]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
call fcn.0043ccfc
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp]
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x48]
push esi
call fcn.00410741
add esp, 0x14
lea ecx, [ebp + 0x48]
call fcn.0042dd2d
or dword [ebp + 0x70], edi
cmp dword [ebp + 0x34], ebx
je 0x420986
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x44]
sub ecx, edx
jns 0x420992
xor ecx, ecx
mov eax, dword [ebp + 0x58]
cmp eax, ecx
jle 0x42099e
mov eax, ecx
mov dword [ebp + 0x58], eax
cmp eax, ebx
jg 0x4209b4
lea ecx, [ebp]
call fcn.0042dd2d
mov esi, 0x80070057
jmp 0x420b2b
cmp edx, ebx
mov esi, dword [ebp]
je 0x4209cc
push eax
lea eax, [esi + edx]
push eax
push esi
call fcn.0047a350
mov eax, dword [ebp + 0x58]
add esp, 0xc
movzx ecx, byte [ebp + 0x68]
push 0xc
push ecx
add esi, eax
push esi
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.00479cf0
mov eax, dword [ebp + 0x70]
or eax, 1
push eax
lea eax, [ebp]
push eax
call fcn.00471542
add esp, 0x14
push ebx
push dword [ebp + 0x50]
lea ecx, [ebp - 0xb4]
call fcn.0041f54a
mov ax, word [ebp + 0x68]
push dword [ebp + 0x2c]
lea ecx, [ebp - 0xb4]
mov word [ebp - 0xac], ax
call fcn.00431b8e
push dword [ebp + 0x70]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp]
push eax
call fcn.0041fa31
or dword [ebp + 0x70], eax
mov eax, dword [ebp + 4]
movzx esi, word [ebp + 0x40]
shr eax, 1
inc eax
inc eax
push eax
mov eax, esi
xor eax, dword [ebp + 0x2c]
push eax
push dword [ebp]
call fcn.0040df73
movzx eax, word [ebp + 0x70]
mov edi, esi
shl edi, 0x10
add esp, 0x18
or edi, eax
cmp byte [0x4a4280], bl
jge 0x420a69
mov byte [0x4a4280], 1
mov eax, dword [ebp]
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x420a8b
push dword [ebp + 0x28]
push eax
lea eax, [ebp]
push eax
push esi
call fcn.0041d8db
add esp, 0x10
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x24]
cmp word [eax], bx
je 0x420ab0
mov ecx, dword [ebp + 0x5c]
sub ecx, dword [ebp]
sar ecx, 1
push ecx
push dword [ebp + 0x30]
push eax
lea eax, [ebp]
push eax
push esi
call fcn.0040dfac
add esp, 0x14
mov dword [ebp + 0x5c], eax
push ebx
lea ecx, [ebp - 0xb4]
call fcn.0041f0e9
lea ecx, [ebp - 0x70]
call fcn.0042dd2d
mov eax, dword [ebp]
cmp eax, ebx
mov dword [ebp], ebx
je 0x420aeb
or edi, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
push ebx
push dword [ebp + 0x5c]
or edi, 0x40
push edi
push dword [ebp + 0x7c]
push dword [ebp + 0x28]
push eax
call fcn.0046bb79
mov dword [ebp - 4], eax
lea ecx, [ebp]
call fcn.0042dd2d
jmp 0x420b1f
push dword [ebp + 0x7c]
call fcn.00410141
pop ecx
push dword [ebp + 0x24]
mov ecx, dword [ebp + 0x50]
push dword [ebp - 0xc]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x4c]
or eax, dword [ebp + 0x30]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x7c]
call fcn.0041fb17
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x50]
push ebx
call fcn.00443dd2
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0042dd2d
lea ecx, [ebp - 0xc]
call fcn.0042dd2d
lea ecx, [ebp - 0x14]
call fcn.0042dd2d
lea ecx, [ebp + 0x3c]
call fcn.0042dd2d
lea ecx, [ebp + 0x24]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4