Function at 0x493bb0
Capabilities:
Get common file path
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e7e54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
push 2
mov dword [esp + 0x24], esi
mov dword [esp + 0x68], edi
call fcn.00445f00
add esp, 4
cmp eax, edi
mov dword [esp + 0x64], eax
je 0x493bf0
mov word [eax], di
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
lea eax, [esp + 0x2f8]
push eax
mov dword [esp + 0x2f4], edi
call fcn.0043f2e0
mov esi, dword [esp + 0x2fc]
add esp, 4
mov dword [esp + 0x40], edi
cmp word [esi], di
mov dword [esp + 0x54], 2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x60], 0xfffffff8
mov dword [esp + 0x28], edi
je 0x493f82
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4f7354
call ebx
lea edi, [eax - 1]
test edi, edi
mov ecx, esi
mov edx, 0x4f7354
jl 0x493c83
movzx ebx, word [ecx]
movsx ebp, byte [edx]
or ebx, 0x20
or ebp, 0x20
add ecx, 2
inc edx
cmp ebp, ebx
jne 0x493cce
dec edi
jns 0x493c66
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cx, word [ecx]
cmp cx, 9
jb 0x493c92
cmp cx, 0xd
jbe 0x493c9d
cmp cx, 0x20
je 0x493c9d
test cx, cx
jne 0x493cd4
lea esi, [esi + eax*2]
test esi, esi
mov dword [esp + 0x2f8], esi
je 0x493f6d
nop
mov ax, word [esi]
cmp ax, 9
jb 0x493cbf
cmp ax, 0xd
jbe 0x493cc9
cmp ax, 0x20
jne 0x493f66
add esi, 2
jmp 0x493cb0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4f7350
call ebx
mov edi, eax
push edi
push esi
push 0x4f7350
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493d20
lea esi, [esi + edi*2]
test esi, esi
mov dword [esp + 0x2f8], esi
je 0x493f6d
mov ax, word [esi]
cmp ax, 9
jb 0x493d11
cmp ax, 0xd
jbe 0x493d1b
cmp ax, 0x20
jne 0x493f66
add esi, 2
jmp 0x493d02
push 0x4ec53c
call ebx
mov edi, eax
push edi
push esi
push 0x4ec53c
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493d6e
lea esi, [esi + edi*2]
test esi, esi
mov dword [esp + 0x2f8], esi
je 0x493f5d
mov edi, edi
mov ax, word [esi]
cmp ax, 9
jb 0x493d5f
cmp ax, 0xd
jbe 0x493d69
cmp ax, 0x20
jne 0x493f56
add esi, 2
jmp 0x493d50
push 0x4efd08
call ebx
mov edi, eax
push edi
push esi
push 0x4efd08
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493db7
lea edx, [esp + 0x2f8]
lea ecx, [esi + edi*2]
push edx
mov dword [esp + 0x2fc], ecx
call fcn.0043f2e0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2fc]
add esp, 4
or eax, 1
jmp 0x493f74
push 0x4f1c6c
call ebx
mov edi, eax
push edi
push esi
push 0x4f1c6c
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493e01
lea ecx, [esp + 0x2f8]
lea eax, [esi + edi*2]
push ecx
mov dword [esp + 0x2fc], eax
call fcn.0043f2e0
mov esi, dword [esp + 0x2fc]
add esp, 4
mov dword [esp + 0x70], 1
jmp 0x493f78
push 0x4f734c
call ebx
mov edi, eax
push edi
push esi
push 0x4f734c
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493e4e
lea eax, [esp + 0x2f8]
lea edx, [esi + edi*2]
push eax
mov dword [esp + 0x2fc], edx
call fcn.0043f2e0
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2fc]
add esp, 4
or eax, 0x10
mov dword [esp + 0x38], eax
jmp 0x493f78
push 3
push esi
push 0x4f7348
call fcn.00440450
add esp, 0xc
test al, al
je 0x493e98
mov ebp, dword [esp + 0x38]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x2fc]
or ebp, 0x10
add esi, 6
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x300], esi
call fcn.00449a90
mov esi, dword [esp + 0x300]
add esp, 8
jmp 0x493f78
push str._O:N
call ebx
mov edi, eax
push edi
push esi
push str._O:N
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493ee2
lea ecx, [esp + 0x2f8]
lea eax, [esi + edi*2]
push ecx
mov dword [esp + 0x2fc], eax
call fcn.0043f2e0
mov esi, dword [esp + 0x2fc]
add esp, 4
mov dword [esp + 0x24], 0x20
jmp 0x493f78
push str._O:_N
call ebx
mov edi, eax
push edi
push esi
push str._O:_N
call fcn.004403f0
add esp, 0xc
test al, al
je 0x493f29
lea eax, [esp + 0x2f8]
lea edx, [esi + edi*2]
push eax
mov dword [esp + 0x2fc], edx
call fcn.0043f2e0
mov esi, dword [esp + 0x2fc]
add esp, 4
mov dword [esp + 0x24], 0x60
jmp 0x493f78
lea ecx, [esp + 0x2f8]
push ecx
or eax, 0xffffffff
mov ecx, str.cur
call fcn.00457270
add esp, 4
test al, al
je 0x493f82
mov esi, dword [esp + 0x2f8]
mov dword [esp + 0x28], 1
jmp 0x493f78
mov dword [esp + 0x2f8], esi
mov eax, dword [esp + 0x14]
or eax, 1
jmp 0x493f74
mov dword [esp + 0x2f8], esi
mov eax, dword [esp + 0x14]
or eax, 2
mov dword [esp + 0x14], eax
cmp word [esi], 0
jne 0x493c51
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
or edi, edx
push 2
mov dword [esp + 0x3c], edi
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x493fa7
mov word [eax], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4ebd38
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov ebp, 3
and ecx, ebp
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
push 0x4ebd38
mov dword [esp + 0x14], 0
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, ebp
rep movsb byte es:[edi], byte [esi]
add esp, 4
mov dword [esp + 0x10], eax
push 0x4ebd38
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, ebp
add esp, 4
mov dword [esp + 0x3c], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x30], eax
mov edi, 1
push edi
push 0x2c
lea eax, [esp + 0x300]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x2fc], 4
call fcn.0045a420
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00449370
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
add esp, 0xc
test ecx, ecx
jne 0x4940ed
xor eax, eax
mov ax, word [esi]
test ax, ax
je 0x4940ed
cmp ax, 9
jb 0x4940a4
cmp ax, 0xd
jbe 0x4940ed
cmp ax, 0x20
je 0x4940ed
cmp ax, 0x40
jne 0x4940b6
mov dword [esp + 0x54], edi
jmp 0x4940e1
cmp ax, 0x24
jne 0x4940c2
mov dword [esp + 0x54], ebp
jmp 0x4940e1
cmp ax, 0x5c
jne 0x4940d0
mov eax, dword [esp + 0x1c]
or eax, edi
jmp 0x4940dd
cmp ax, 0x21
jne 0x4940ed
mov eax, dword [esp + 0x1c]
or eax, 2
mov dword [esp + 0x1c], eax
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x494098
test esi, esi
je 0x49410b
mov ax, word [esi]
cmp ax, 9
jb 0x494100
cmp ax, 0xd
jbe 0x494106
cmp ax, 0x20
jne 0x49410b
add esi, 2
jmp 0x4940f1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x494179
cmp word [esi], 0x5c
jne 0x494129
lea esp, [esp]
add esi, 2
cmp word [esi], 0x5c
je 0x494120
test esi, esi
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x10], 0
je 0x49415f
push esi
call ebx
lea edi, [eax + eax + 2]
push edi
call fcn.00445f00
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x49418b
mov eax, dword [0x51927c]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
add ebp, 0xfffffff8
push ebp
push 0
push eax
call edi
jmp 0x494191
test ecx, ecx
jne 0x494129
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00420bd9
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x2f8]
cmp word [esi], 0x2c
jne 0x4941d4
push 1
push 0x2c
lea ecx, [esp + 0x300]
push ecx
add esi, 2
lea ecx, [esp + 0x70]
mov dword [esp + 0x304], esi
call fcn.0045a420
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00449370
mov esi, dword [esp + 0x304]
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x494236
cmp word [esi], 0x2c
jne 0x494236
push 1
push 0x2c
lea eax, [esp + 0x300]
add esi, 2
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x304], esi
call fcn.0045a420
mov ecx, eax
mov eax, dword [esp + 0x40]
cdq
mov dword [esp + 0x78], edx
push 0x2c
lea edx, [esp + 0x78]
push edx
push ecx
mov dword [esp + 0x80], eax
call fcn.00449690
mov esi, dword [esp + 0x304]
add esp, 0xc
test eax, eax
jle 0x494236
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x494246
mov dword [esp + 0x40], 0xfffffff8
cmp word [esi], 0x2c
je 0x4942d4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x494267
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49427e
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x10], 0
je 0x49429c
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4942b3
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4942ca
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call edi
mov eax, 1
jmp 0x494a95
add esi, 2
je 0x4942fa
lea esp, [esp]
mov ax, word [esi]
cmp ax, 9
jb 0x4942ef
cmp ax, 0xd
jbe 0x4942f5
cmp ax, 0x20
jne 0x4942fa
add esi, 2
jmp 0x4942e0
push esi
call ebx
mov ecx, dword [esp + 0x3c]
mov edi, eax
lea eax, [edi + edi + 4]
push ecx
call fcn.00445f60
mov edx, eax
xor ebx, ebx
add esp, 4
cmp edx, ebx
mov dword [esp + 0x30], edx
je 0x494321
mov word [edx + edi*2 + 2], bx
lea eax, [edi + edi]
mov ecx, eax
mov ebp, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + edx], bx
mov eax, dword [esp + 0x300]
cmp eax, ebx
mov dword [esp + 0x4c], ebx
je 0x49434d
mov esi, dword [eax]
jmp 0x49434f
xor esi, esi
cmp word [edx], bx
mov dword [esp + 0x44], esi
jne 0x494371
cmp esi, ebx
je 0x494371
mov ecx, dword [esp + 0x20]
mov dx, word [ecx + 0x56]
cmp dx, word [esi]
jne 0x494371
push ebx
push ebx
push eax
call fcn.00443ec0
push 0x656
call fcn.00445f00
add esp, 4
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x494389
mov word [eax], bx
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov ebx, dword [esp + 0x20]
and word [ebx + 0x7e], 0x8b
mov eax, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, bp
mov byte [esp + 0x2f0], 6
mov dword [esp + 0x34], ebp
mov dword [esp + 0x5c], ebp
jne 0x4943cd
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
je 0x4943cd
mov dx, word [ebx + 0x56]
cmp dx, word [ecx]
jne 0x4943cd
mov ecx, 0x100
jmp 0x4943cf
xor ecx, ecx
mov edx, dword [esp + 0x18]
cmp word [edx], bp
mov dword [esp + 0x48], ecx
je 0x4943ed
cmp ax, bp
jne 0x4943ed
cmp ecx, ebp
mov dword [esp + 0x58], 1
je 0x4943f1
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x14]
test al, 2
je 0x4945b4
mov dword [esp + 0x28], ebp
push 0x5194ec
mov dword [esp + 0x54], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x2fc], 8
call fcn.00422a90
cmp eax, ebp
jne 0x49444f
push 0x5194ec
mov dword [esp + 0x60], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x2f0], 6
jmp 0x49456d
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
call fcn.004575a0
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], ebp
cmp word [esi], bp
mov byte [esp + 0x2f0], 9
je 0x494550
nop
test byte [ebx + 0x7e], 0xef
jne 0x494550
mov ax, word [esi]
cmp ax, bp
mov ecx, esi
je 0x4944ac
cmp ax, 0xd
je 0x4944ac
cmp ax, 0xa
je 0x4944ac
mov ax, word [esi + 2]
add esi, 2
cmp ax, bp
jne 0x494494
mov di, word [esi]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
mov word [esi], bp
call fcn.00444550
cmp di, 0xd
jne 0x4944d1
cmp word [esi + 2], 0xa
jne 0x4944d6
add esi, 4
jmp 0x4944d9
cmp di, bp
je 0x4944d9
add esi, 2
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
inc ecx
cmp eax, ebp
mov dword [esp + 0x34], ecx
je 0x494511
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x44]
push 0x4ebd38
push ebp
lea eax, [esp + 0x54]
push eax
add edx, 2
push ecx
mov ecx, ebx
mov dword [esp + 0x5c], edx
call fcn.00487aa0
jmp 0x494533
mov eax, dword [esp + 0x30]
cmp word [eax], bp
je 0x494533
mov edx, dword [esp + 0x304]
mov ecx, dword [esp + 0x2fc]
push edx
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.00435957
xor eax, eax
mov ax, word [ebx + 0x7e]
test ah, 1
je 0x494547
and eax, 0xfeff
mov word [ebx + 0x7e], ax
cmp word [esi], bp
jne 0x494480
mov edx, dword [esp + 0x28]
add edx, 0xfffffff8
push edx
mov byte [esp + 0x2f4], 6
push ebp
mov eax, dword [0x51927c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
and word [esi + 0x7e], 0x8b
test eax, eax
je 0x4949e4
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x80]
push 0x4efae8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push edi
mov ecx, esi
call fcn.00444550
jmp 0x4949e8
cmp eax, 1
jne 0x494733
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp word [ebp], bx
mov byte [esp + 0x2f0], 0xa
je 0x494718
jmp 0x4945e0
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x7e], 0xef
jne 0x494718
mov ax, word [ebp]
test ax, ax
mov esi, ebp
je 0x49461e
lea esp, [esp]
cmp ax, 9
jb 0x49460c
cmp ax, 0xd
jbe 0x49461e
cmp ax, 0x20
je 0x49461e
mov ax, word [ebp + 2]
add ebp, 2
test ax, ax
jne 0x494600
mov edi, ebp
sub edi, esi
sar edi, 1
test edi, edi
jge 0x494631
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + edi + 4]
push ebx
call fcn.00445f60
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x50], ebx
je 0x49464f
mov word [ebx + edi*2 + 2], 0
lea eax, [edi + edi]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebx], 0
lea ebx, [ebx]
mov ax, word [ebp]
cmp ax, 9
jb 0x494680
cmp ax, 0xd
jbe 0x494686
cmp ax, 0x20
jne 0x49468b
add ebp, 2
jmp 0x494670
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
push ebx
push eax
mov ecx, esi
call fcn.00444550
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
inc ecx
test eax, eax
mov dword [esp + 0x34], ecx
je 0x4946d5
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x2fc]
push 0x4ebd38
push 0
add ecx, 2
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], ecx
push eax
mov ecx, esi
call fcn.00487aa0
jmp 0x4946f9
mov eax, dword [esp + 0x30]
cmp word [eax], 0
je 0x4946f9
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x2fc]
push ecx
push 0
push edx
push eax
mov ecx, esi
call fcn.00435957
xor eax, eax
mov ax, word [esi + 0x7e]
test ah, 1
je 0x49470d
and eax, 0xfeff
mov word [esi + 0x7e], ax
cmp word [ebp], 0
jne 0x4945e0
test ebx, ebx
mov byte [esp + 0x2f0], 6
je 0x49456d
add ebx, 0xfffffff8
push ebx
push 0
jmp 0x494561
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042063d
add esp, 4
push eax
lea ecx, [esp + 0x14]
call fcn.004574e0
mov ecx, dword [esp + 0x10]
cmp word [ecx], bp
je 0x49456d
mov ebx, dword [esp + 0x1c]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x14], eax
je 0x494805
cmp dword [esp + 0x28], eax
je 0x4947ad
lea edx, [esp + 0xe0]
push edx
push 0x104
mov word [esp + 0xe8], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 0xe0]
mov cx, ax
cmp cx, 0x61
mov dword [esp + 0x14], eax
jb 0x4947ad
cmp cx, 0x7a
ja 0x4947ad
and eax, 0xffdf
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x3c]
xor eax, eax
lea esi, [edi + 4]
mov word [esi + 2], ax
mov word [esi], ax
push esi
mov word [edi + 2], ax
push 0x324
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
and bl, 2
cmp word [esi], 0
mov ebp, esi
je 0x4947f5
jmp 0x4947e0
push esi
mov ebp, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 + 2], 0
lea esi, [esi + eax*2 + 2]
jne 0x4947e0
test bl, bl
jne 0x494949
lea ebp, [edi + 4]
jmp 0x494949
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], eax
mov ebx, ecx
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x49482d
mov eax, dword [esp + 0x30]
cmp word [eax], 0
jne 0x49482d
mov eax, dword [esp + 0x58]
test eax, eax
je 0x49456d
mov eax, dword [esp + 0x70]
test eax, eax
je 0x494857
xor eax, eax
mov ax, word [ebx]
test ax, ax
je 0x494857
cmp word [ebx + 2], 0x3a
jne 0x494857
push eax
call fcn.004abc30
add esp, 4
test eax, eax
je 0x49493d
push 2
call fcn.00445f00
mov esi, eax
add esp, 4
test esi, esi
je 0x49486c
mov word [esi], 0
push ebx
mov byte [esp + 0x2f4], 0xb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 0x104]
lea eax, [edi + edi + 4]
push esi
call fcn.00445f60
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x74], esi
je 0x4948a0
mov word [esi + edi*2 + 2], 0
lea ecx, [esp + 0x50]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x60], 0
call fcn.00446c10
mov edx, dword [esp + 0x314]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
add esp, 0x10
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x30c]
or eax, ecx
mov ecx, dword [esp + 0x54]
or eax, ebx
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push esi
push eax
mov ecx, edi
call fcn.00493280
mov edx, dword [esp + 0x34]
add edx, eax
xor eax, eax
mov ax, word [edi + 0x7e]
test ah, 1
mov dword [esp + 0x34], edx
je 0x49491e
and eax, 0xfeff
mov ecx, edi
mov word [ecx + 0x7e], ax
test esi, esi
mov byte [esp + 0x2f0], 6
je 0x49493d
mov edx, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49456d
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
cmp word [ebp], 0
je 0x49456d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49456d
mov eax, dword [esp + 0x20]
test byte [eax + 0x7e], 0xef
jne 0x49456d
push ebp
lea ecx, [esp + 0x30]
call fcn.004575a0
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.004462e0
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4949d0
test byte [esp + 0x1c], 2
je 0x4949b7
sub ebp, 2
lea eax, [esi + 4]
cmp ebp, eax
jbe 0x4949c2
cmp word [ebp - 2], 0
je 0x4949c2
add ebp, 0xfffffffe
cmp ebp, eax
ja 0x4949a7
jmp 0x4949c2
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [ebp + eax*2 + 2]
mov ebx, dword [esp + 0x2c]
cmp di, word [ebx]
je 0x494951
jmp 0x49480f
mov ebx, dword [esp + 0x2c]
mov word [ebx], di
mov dword [esp + 0x28], 0
jmp 0x49480f
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x494a05
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x494a1b
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x494a32
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x494a49
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
test edi, edi
mov dword [esp + 0x10], 0
je 0x494a63
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x494a7a
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x494a91
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2e4
ret 0x10