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

Disassembly:
push 0xffffffffffffffff
push 0x4ec134
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
push 2
mov dword [esp + 0x28], esi
mov dword [esp + 0x6c], edi
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esp + 0x68], eax
je 0x493a90
mov word [eax], di
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
lea eax, [esp + 0x2f0]
push eax
mov dword [esp + 0x2ec], edi
call fcn.00443850
mov esi, dword [esp + 0x2f4]
add esp, 4
mov dword [esp + 0x40], edi
cmp word [esi], di
mov dword [esp + 0x58], 2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x50], 0xfffffff8
mov dword [esp + 0x2c], edi
je 0x493e22
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4fb3dc
call ebx
lea edi, [eax - 1]
test edi, edi
mov ecx, esi
mov edx, 0x4fb3dc
jl 0x493b23
movzx ebx, word [ecx]
movsx ebp, byte [edx]
or ebx, 0x20
or ebp, 0x20
add ecx, 2
inc edx
cmp ebp, ebx
jne 0x493b6e
dec edi
jns 0x493b06
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cx, word [ecx]
cmp cx, 9
jb 0x493b32
cmp cx, 0xd
jbe 0x493b3d
cmp cx, 0x20
je 0x493b3d
test cx, cx
jne 0x493b74
lea esi, [esi + eax*2]
test esi, esi
mov dword [esp + 0x2f0], esi
je 0x493e0d
nop
mov ax, word [esi]
cmp ax, 9
jb 0x493b5f
cmp ax, 0xd
jbe 0x493b69
cmp ax, 0x20
jne 0x493e06
add esi, 2
jmp 0x493b50
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4fb3d8
call ebx
mov edi, eax
push edi
push esi
push 0x4fb3d8
call fcn.00444970
add esp, 0xc
test al, al
je 0x493bc0
lea esi, [esi + edi*2]
test esi, esi
mov dword [esp + 0x2f0], esi
je 0x493e0d
mov ax, word [esi]
cmp ax, 9
jb 0x493bb1
cmp ax, 0xd
jbe 0x493bbb
cmp ax, 0x20
jne 0x493e06
add esi, 2
jmp 0x493ba2
push 0x4f05c4
call ebx
mov edi, eax
push edi
push esi
push 0x4f05c4
call fcn.00444970
add esp, 0xc
test al, al
je 0x493c0e
lea esi, [esi + edi*2]
test esi, esi
mov dword [esp + 0x2f0], esi
je 0x493dfd
mov edi, edi
mov ax, word [esi]
cmp ax, 9
jb 0x493bff
cmp ax, 0xd
jbe 0x493c09
cmp ax, 0x20
jne 0x493df6
add esi, 2
jmp 0x493bf0
push 0x4f43c4
call ebx
mov edi, eax
push edi
push esi
push 0x4f43c4
call fcn.00444970
add esp, 0xc
test al, al
je 0x493c57
lea edx, [esp + 0x2f0]
lea ecx, [esi + edi*2]
push edx
mov dword [esp + 0x2f4], ecx
call fcn.00443850
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2f4]
add esp, 4
or eax, 1
jmp 0x493e14
push 0x4f5dfc
call ebx
mov edi, eax
push edi
push esi
push 0x4f5dfc
call fcn.00444970
add esp, 0xc
test al, al
je 0x493ca1
lea ecx, [esp + 0x2f0]
lea eax, [esi + edi*2]
push ecx
mov dword [esp + 0x2f4], eax
call fcn.00443850
mov esi, dword [esp + 0x2f4]
add esp, 4
mov dword [esp + 0x64], 1
jmp 0x493e18
push 0x4fb3d4
call ebx
mov edi, eax
push edi
push esi
push 0x4fb3d4
call fcn.00444970
add esp, 0xc
test al, al
je 0x493cee
lea eax, [esp + 0x2f0]
lea edx, [esi + edi*2]
push eax
mov dword [esp + 0x2f4], edx
call fcn.00443850
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x2f4]
add esp, 4
or eax, 0x10
mov dword [esp + 0x34], eax
jmp 0x493e18
push 3
push esi
push 0x4fb3d0
call fcn.004449d0
add esp, 0xc
test al, al
je 0x493d38
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x2f4]
or ebp, 0x10
add esi, 6
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2f8], esi
call fcn.0044ce90
mov esi, dword [esp + 0x2f8]
add esp, 8
jmp 0x493e18
push str._O:N
call ebx
mov edi, eax
push edi
push esi
push str._O:N
call fcn.00444970
add esp, 0xc
test al, al
je 0x493d82
lea ecx, [esp + 0x2f0]
lea eax, [esi + edi*2]
push ecx
mov dword [esp + 0x2f4], eax
call fcn.00443850
mov esi, dword [esp + 0x2f4]
add esp, 4
mov dword [esp + 0x20], 0x20
jmp 0x493e18
push str._O:_N
call ebx
mov edi, eax
push edi
push esi
push str._O:_N
call fcn.00444970
add esp, 0xc
test al, al
je 0x493dc9
lea eax, [esp + 0x2f0]
lea edx, [esi + edi*2]
push eax
mov dword [esp + 0x2f4], edx
call fcn.00443850
mov esi, dword [esp + 0x2f4]
add esp, 4
mov dword [esp + 0x20], 0x60
jmp 0x493e18
lea ecx, [esp + 0x2f0]
push ecx
or eax, 0xffffffff
mov ecx, str.cur
call fcn.004563c0
add esp, 4
test al, al
je 0x493e22
mov esi, dword [esp + 0x2f0]
mov dword [esp + 0x2c], 1
jmp 0x493e18
mov dword [esp + 0x2f0], esi
mov eax, dword [esp + 0x14]
or eax, 1
jmp 0x493e14
mov dword [esp + 0x2f0], esi
mov eax, dword [esp + 0x14]
or eax, 2
mov dword [esp + 0x14], eax
cmp word [esi], 0
jne 0x493af1
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
or edi, edx
push 2
mov dword [esp + 0x38], edi
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x493e47
mov word [eax], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4efd50
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4efd50
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 + 0x28], eax
push 0x4efd50
mov dword [esp + 0x14], 0
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4efd50
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 0x4efd50
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4efd50
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, ebp
add esp, 4
mov dword [esp + 0x44], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x30], eax
mov edi, 1
push edi
push 0x2c
lea eax, [esp + 0x2f8]
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x2f4], 4
call fcn.00459430
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.0044c770
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add esp, 0xc
test ecx, ecx
jne 0x493f8d
xor eax, eax
mov ax, word [esi]
test ax, ax
je 0x493f8d
cmp ax, 9
jb 0x493f44
cmp ax, 0xd
jbe 0x493f8d
cmp ax, 0x20
je 0x493f8d
cmp ax, 0x40
jne 0x493f56
mov dword [esp + 0x58], edi
jmp 0x493f81
cmp ax, 0x24
jne 0x493f62
mov dword [esp + 0x58], ebp
jmp 0x493f81
cmp ax, 0x5c
jne 0x493f70
mov eax, dword [esp + 0x1c]
or eax, edi
jmp 0x493f7d
cmp ax, 0x21
jne 0x493f8d
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 0x493f38
test esi, esi
je 0x493fab
mov ax, word [esi]
cmp ax, 9
jb 0x493fa0
cmp ax, 0xd
jbe 0x493fa6
cmp ax, 0x20
jne 0x493fab
add esi, 2
jmp 0x493f91
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x494019
cmp word [esi], 0x5c
jne 0x493fc9
lea esp, [esp]
add esi, 2
cmp word [esi], 0x5c
je 0x493fc0
test esi, esi
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x10], 0
je 0x493fff
push esi
call ebx
lea edi, [eax + eax + 2]
push edi
call fcn.00449130
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 0x49402b
mov eax, dword [0x51d3c8]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
add ebp, 0xfffffff8
push ebp
push 0
push eax
call edi
jmp 0x494031
test ecx, ecx
jne 0x493fc9
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00422660
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x2f0]
cmp word [esi], 0x2c
jne 0x494074
push 1
push 0x2c
lea ecx, [esp + 0x2f8]
push ecx
add esi, 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x2fc], esi
call fcn.00459430
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0044c770
mov esi, dword [esp + 0x2fc]
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4940d3
cmp word [esi], 0x2c
jne 0x4940d3
push 1
push 0x2c
lea eax, [esp + 0x2f8]
add esi, 2
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x2fc], esi
call fcn.00459430
mov ecx, eax
mov eax, dword [esp + 0x40]
cdq
mov dword [esp + 0x60], edx
push 0x2c
lea edx, [esp + 0x60]
push edx
push ecx
mov dword [esp + 0x68], eax
call fcn.0044ca90
mov esi, dword [esp + 0x2fc]
add esp, 0xc
test eax, eax
jle 0x4940d3
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x4940e3
mov dword [esp + 0x40], 0xfffffff8
cmp word [esi], 0x2c
je 0x494171
mov eax, dword [esp + 0x44]
test eax, eax
je 0x494104
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49411b
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call edi
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x10], 0
je 0x494139
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x494150
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call edi
mov eax, dword [esp + 0x68]
test eax, eax
je 0x494167
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call edi
mov eax, 1
jmp 0x49493b
add esi, 2
je 0x494190
mov ax, word [esi]
cmp ax, 9
jb 0x494185
cmp ax, 0xd
jbe 0x49418b
cmp ax, 0x20
jne 0x494190
add esi, 2
jmp 0x494176
push esi
call ebx
mov ecx, dword [esp + 0x44]
mov edi, eax
lea eax, [edi + edi + 4]
push ecx
call fcn.00449190
mov ebx, eax
xor edx, edx
add esp, 4
cmp ebx, edx
mov dword [esp + 0x30], ebx
je 0x4941b7
mov word [ebx + edi*2 + 2], dx
lea eax, [edi + edi]
mov ecx, eax
mov ebp, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebx], dx
mov eax, dword [esp + 0x2f8]
cmp eax, edx
mov dword [esp + 0x54], edx
je 0x4941e3
mov ecx, dword [eax]
jmp 0x4941e5
xor ecx, ecx
cmp word [ebx], dx
mov dword [esp + 0x48], ecx
jne 0x49420d
cmp ecx, edx
je 0x49420d
mov ebp, dword [esp + 0x24]
mov dx, word [ebp + 0x56]
cmp dx, word [ecx]
jne 0x494211
push 0
push 0
push eax
mov ecx, ebp
call fcn.004487d0
jmp 0x494211
mov ebp, dword [esp + 0x24]
push 0x656
call fcn.00449130
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x49422b
mov word [eax], bx
xor esi, esi
mov dword [esp + 0x38], ebx
and word [ebp + 0x84], 0x8b
mov edx, dword [esp + 0x30]
mov ax, word [edx]
cmp ax, bx
mov byte [esp + 0x2e8], 6
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ebx
jne 0x49426e
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x49426e
mov dx, word [ebp + 0x56]
cmp dx, word [ecx]
jne 0x49426e
mov ecx, 0x100
jmp 0x494270
xor ecx, ecx
mov edx, dword [esp + 0x28]
cmp word [edx], bx
mov dword [esp + 0x18], ecx
je 0x49428e
cmp ax, bx
jne 0x49428e
cmp ecx, ebx
mov dword [esp + 0x44], 1
je 0x494292
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x14]
test al, 2
je 0x49445e
mov dword [esp + 0x2c], ebx
push 0x51d5ec
mov dword [esp + 0x54], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x2f4], 8
call fcn.00423eea
cmp eax, ebx
jne 0x4942f0
push 0x51d5ec
mov dword [esp + 0x60], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x2e8], 6
jmp 0x494417
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
call fcn.004566f0
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], ebx
cmp word [esi], bx
mov byte [esp + 0x2e8], 9
je 0x4943f9
test byte [ebp + 0x84], 0xef
jne 0x4943f9
mov ax, word [esi]
cmp ax, bx
mov ecx, esi
je 0x49434f
cmp ax, 0xd
je 0x49434f
cmp ax, 0xa
je 0x49434f
mov ax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x494337
mov di, word [esi]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebp
mov word [esi], bx
call fcn.00448be0
cmp di, 0xd
jne 0x494374
cmp word [esi + 2], 0xa
jne 0x494379
add esi, 4
jmp 0x49437c
cmp di, bx
je 0x49437c
add esi, 2
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
inc ecx
cmp eax, ebx
mov dword [esp + 0x3c], ecx
je 0x4943b4
mov ecx, dword [esp + 0x2f4]
mov edx, dword [esp + 0x48]
push 0x4efd50
push ebx
lea eax, [esp + 0x5c]
push eax
add edx, 2
push ecx
mov ecx, ebp
mov dword [esp + 0x64], edx
call fcn.00489080
jmp 0x4943d6
mov edx, dword [esp + 0x30]
cmp word [edx], bx
je 0x4943d6
mov eax, dword [esp + 0x2fc]
mov ecx, dword [esp + 0x2f4]
push eax
push ebx
push ecx
push edx
mov ecx, ebp
call fcn.00437b3d
xor eax, eax
mov ax, word [ebp + 0x84]
test ah, 1
je 0x4943f0
and eax, 0xfeff
mov word [ebp + 0x84], ax
cmp word [esi], bx
jne 0x494320
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
mov byte [esp + 0x2f0], 6
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
and word [esi + 0x84], 0x8b
test eax, eax
je 0x49488b
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x78]
push 0x4f40fc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x74]
push edx
push edi
mov ecx, esi
call fcn.00448be0
jmp 0x49488f
cmp eax, 1
jne 0x4945dd
mov ebx, dword [esp + 0x10]
xor ebp, ebp
cmp word [ebx], bp
mov byte [esp + 0x2e8], 0xa
je 0x4945bc
mov edi, edi
mov edx, dword [esp + 0x24]
test byte [edx + 0x84], 0xef
jne 0x4945bc
mov ax, word [ebx]
test ax, ax
mov esi, ebx
je 0x4944be
jmp 0x4944a0
cmp ax, 9
jb 0x4944ac
cmp ax, 0xd
jbe 0x4944be
cmp ax, 0x20
je 0x4944be
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4944a0
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jge 0x4944d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + edi + 4]
push ebp
call fcn.00449190
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x50], ebp
je 0x4944ef
mov word [ebp + edi*2 + 2], 0
lea eax, [edi + edi]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebp], 0
lea ebx, [ebx]
mov ax, word [ebx]
cmp ax, 9
jb 0x49451f
cmp ax, 0xd
jbe 0x494525
cmp ax, 0x20
jne 0x49452a
add ebx, 2
jmp 0x494510
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push ebp
push eax
mov ecx, esi
call fcn.00448be0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
inc ecx
test eax, eax
mov dword [esp + 0x3c], ecx
je 0x494574
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x2f4]
push 0x4efd50
push 0
add ecx, 2
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], ecx
push eax
mov ecx, esi
call fcn.00489080
jmp 0x494598
mov eax, dword [esp + 0x30]
cmp word [eax], 0
je 0x494598
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x2f4]
push ecx
push 0
push edx
push eax
mov ecx, esi
call fcn.00437b3d
xor eax, eax
mov ax, word [esi + 0x84]
test ah, 1
je 0x4945b2
and eax, 0xfeff
mov word [esi + 0x84], ax
cmp word [ebx], 0
jne 0x494480
test ebp, ebp
mov byte [esp + 0x2e8], 6
je 0x494417
mov eax, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push eax
jmp 0x494411
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00422077
add esp, 4
push eax
lea ecx, [esp + 0x14]
call fcn.00456630
mov eax, dword [esp + 0x10]
cmp word [eax], bx
je 0x494417
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x14], ebp
je 0x4946c0
cmp dword [esp + 0x2c], ebp
je 0x494657
lea edx, [esp + 0xd8]
push edx
push 0x104
mov word [esp + 0xe0], bp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 0xd8]
mov cx, ax
cmp cx, 0x61
mov dword [esp + 0x14], eax
jb 0x494657
cmp cx, 0x7a
ja 0x494657
and eax, 0xffdf
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
lea esi, [eax + 4]
mov word [esi + 2], bp
mov word [esi], bp
push esi
mov word [eax + 2], bp
push 0x324
mov word [eax], bp
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [esp + 0x4c]
mov bl, byte [esp + 0x1c]
add eax, 4
and bl, 2
cmp word [eax], bp
mov edi, esi
je 0x4946a4
lea ecx, [ecx]
push edi
mov esi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], bp
lea edi, [edi + eax*2 + 2]
jne 0x494690
mov ebp, dword [esp + 0x24]
test bl, bl
mov ebx, dword [esp + 0x18]
jne 0x4947e3
mov esi, dword [esp + 0x4c]
add esi, 4
jmp 0x4947e3
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov edi, eax
test ebx, ebx
jne 0x4946eb
mov eax, dword [esp + 0x30]
cmp word [eax], bx
jne 0x4946eb
mov eax, dword [esp + 0x44]
test eax, eax
je 0x494417
mov eax, dword [esp + 0x64]
test eax, eax
je 0x494715
xor eax, eax
mov ax, word [edi]
test ax, ax
je 0x494715
cmp word [edi + 2], 0x3a
jne 0x494715
push eax
call fcn.004b0a20
add esp, 4
test eax, eax
je 0x4947d7
push 2
mov dword [esp + 0x1c], 0
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x494734
mov word [eax], 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov byte [esp + 0x2f4], 0xb
call fcn.004a2600
mov edx, dword [esp + 0x308]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x40]
add esp, 0xc
push edx
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x68]
mov eax, ebx
or eax, edi
or eax, edx
mov edx, dword [esp + 0x304]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.00493120
mov edx, dword [esp + 0x3c]
add edx, eax
xor eax, eax
mov ax, word [ebp + 0x84]
test ah, 1
mov dword [esp + 0x3c], edx
je 0x4947b4
and eax, 0xfeff
mov word [ebp + 0x84], ax
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x2e8], 6
je 0x4947d7
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x494417
cmp word [esi], 0
je 0x494417
mov eax, dword [esp + 0x40]
test eax, eax
je 0x494417
test byte [ebp + 0x84], 0xef
jne 0x494417
push esi
lea ecx, [esp + 0x3c]
call fcn.004566f0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00449510
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x494872
test byte [esp + 0x1c], 2
je 0x494850
mov eax, dword [esp + 0x4c]
sub esi, 2
add eax, 4
cmp esi, eax
jbe 0x49485b
jmp 0x494840
cmp word [esi - 2], 0
je 0x49485b
add esi, 0xfffffffe
cmp esi, eax
ja 0x494840
jmp 0x49485b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov edi, dword [esp + 0x38]
mov cx, word [esp + 0x14]
cmp cx, word [edi]
je 0x4947e3
jmp 0x4946d2
mov edi, dword [esp + 0x38]
mov dx, word [esp + 0x14]
mov word [edi], dx
mov dword [esp + 0x2c], 0
jmp 0x4946d2
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x4948ab
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4948c2
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4948d9
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4948ef
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
test edi, edi
mov dword [esp + 0x10], 0
je 0x49490a
mov ecx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push ecx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x494921
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x68]
test eax, eax
je 0x494937
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call esi
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2dc
ret 0x10