Function at 0x4ea5f8
Capabilities:
Check if file exists
Copy file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x68
push 0
push 0
dec ecx
jne 0x4ea601
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
mov eax, dword [ebp - 8]
call fcn.00405b5c
mov eax, dword [ebp + 8]
call fcn.00405b5c
lea eax, [ebp - 0x30]
mov edx, dword [0x4baf40]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4eb34d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 1
mov ecx, 0x4eb36c
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov edi, eax
mov ecx, 0x4eb37c
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
mov esi, dword [eax]
xor ebx, ebx
call fcn.004ebf2c
xor eax, eax
push ebp
push 0x4eb2e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004e9800
jmp 0x4ea6d9
lea eax, [ebx + ebx*2]
mov edx, dword [esi + 0x50]
mov eax, dword [edx + eax*8 + 4]
lea edx, [ebp - 0x25c]
call fcn.004bda44
mov eax, dword [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.00405b04
jne 0x4ea6d8
lea eax, [ebp - 0x30]
lea edx, [ebx + ebx*2]
mov ecx, dword [esi + 0x50]
lea edx, [ecx + edx*8]
mov ecx, dword [0x4baf40]
call fcn.004066c8
inc ebx
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jl 0x4ea69c
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jle 0x4ea6fb
call fcn.00405100
jmp 0x4eb2ec
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x2c]
call fcn.004bda44
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x2c]
call fcn.00405774
lea edx, [ebp - 0x264]
mov eax, dword [ebp - 0x24]
call fcn.004bda44
mov edx, dword [ebp - 0x264]
lea eax, [ebp - 0x24]
call fcn.00405774
mov eax, dword [ebp - 0x2c]
call fcn.00405b6c
mov dword [ebp - 0x258], eax
mov eax, dword [esi + 0x1c]
call fcn.00405b6c
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x24]
call fcn.00405b6c
mov dword [ebp - 0x250], eax
xor ebx, ebx
lea ecx, [ebp - 0x268]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004da8c0
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x18]
call fcn.004bda44
jmp 0x4eaa1e
push 0x20
lea ecx, [ebp - 0x26c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x26c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4ea7fd
mov eax, edi
call fcn.004ed548
test al, al
je 0x4ea7fd
lea ecx, [ebp - 0x270]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdcb8
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x274]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x274]
pop edx
call fcn.004be150
test al, al
je 0x4ea7fd
mov eax, dword [ebp - 0x48]
call fcn.004e9748
call fcn.004ecb14
test al, al
jne 0x4ea83b
mov eax, edi
call fcn.004ed6d0
test al, al
jne 0x4ea881
lea ecx, [ebp - 0x278]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4eb394
call fcn.00481428
mov eax, dword [ebp - 0x278]
call fcn.00448c24
jmp 0x4ea881
mov eax, dword [esi + 4]
mov ecx, edi
mov edx, dword [ebp - 0x10]
call fcn.004e95ec
test al, al
je 0x4ea881
mov eax, edi
call fcn.004ed6d0
test al, al
jne 0x4ea881
lea ecx, [ebp - 0x27c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4eb394
pop eax
call fcn.00481428
mov eax, dword [ebp - 0x27c]
call fcn.00448c24
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
lea ecx, [ebp - 0x284]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x284]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x280]
call fcn.004058d4
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28c]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdcb8
mov eax, dword [ebp - 0x28c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x288]
call fcn.004058d4
mov eax, dword [ebp - 0x288]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4ea91c
push 0x20
lea ecx, [ebp - 0x290]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x290]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4ea9ff
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405b04
je 0x4ea9ff
mov eax, dword [ebp + 8]
call fcn.0040af54
test al, al
je 0x4ea9ff
push 0x20
lea ecx, [ebp - 0x294]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x294]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x29c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x29c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x298]
call fcn.004058d4
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x2a4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2a4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2a0]
call fcn.004058d4
mov eax, dword [ebp - 0x2a0]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4ea9ff
push 0x20
lea ecx, [ebp - 0x2a8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2a8]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
inc ebx
lea ecx, [ebp - 0x2ac]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004da8c0
mov eax, dword [ebp - 0x2ac]
lea edx, [ebp - 0x18]
call fcn.004bda44
cmp dword [ebp - 0x18], 0
jne 0x4ea782
mov eax, edi
call fcn.004ed560
test al, al
je 0x4eaa66
mov eax, edi
call fcn.004ed914
test al, al
jne 0x4eaa66
lea ecx, [ebp - 0x2b0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4eb3bc
call fcn.00481428
mov eax, dword [ebp - 0x2b0]
call fcn.00448c24
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eb038
xor ebx, ebx
lea ecx, [ebp - 0x2b4]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004da8c0
mov eax, dword [ebp - 0x2b4]
lea edx, [ebp - 0x14]
call fcn.004bda44
jmp 0x4eaff0
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
push 0x201
lea eax, [ebp - 0x24b]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4eaad2
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x24b]
mov ecx, 0x201
call fcn.0040594c
jmp 0x4eaae0
mov byte [ebp - 0x31], 0
call fcn.00405100
jmp 0x4eb2ec
lea ecx, [ebp - 0x2b8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov edx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x10]
call fcn.00405774
push 0x20
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.0040af30
test al, al
jne 0x4eacb5
push 0x20
lea ecx, [ebp - 0x2bc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2bc]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x2c4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2c4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2c0]
call fcn.004058d4
mov eax, dword [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x2cc]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2cc]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2c8]
call fcn.004058d4
mov eax, dword [ebp - 0x2c8]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4eabd2
push 0x20
lea ecx, [ebp - 0x2d0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2d0]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eacb5
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405b04
je 0x4eacb5
mov eax, dword [ebp + 8]
call fcn.0040af54
test al, al
je 0x4eacb5
push 0x20
lea ecx, [ebp - 0x2d4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2d4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x2dc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2dc]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2d8]
call fcn.004058d4
mov eax, dword [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2e4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2e4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2e0]
call fcn.004058d4
mov eax, dword [ebp - 0x2e0]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4eacb5
push 0x20
lea ecx, [ebp - 0x2e8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2e8]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405b6c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4eafd1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20
je 0x4ead6a
cmp dword [ebp - 0x38], 5
je 0x4ead6a
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2f0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4eb3e4
call fcn.00481428
mov eax, dword [ebp - 0x2f0]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x308], eax
mov byte [ebp - 0x304], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2fc], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 0x2f4], 0xb
lea edx, [ebp - 0x308]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2ec]
call fcn.00448c24
jmp 0x4eafd1
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4ead99
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4eafd1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004bdf50
test al, al
je 0x4eafd1
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eae52
mov eax, edi
call fcn.004ed548
test al, al
je 0x4eae52
mov eax, dword [ebp - 0x48]
call fcn.004e9748
mov byte [ebp - 0x49], 0
call fcn.004ecb14
test al, al
jne 0x4eadd2
mov byte [ebp - 0x49], 1
jmp 0x4eade7
mov eax, dword [esi + 4]
mov ecx, edi
mov edx, dword [ebp - 0x10]
call fcn.004e95ec
test al, al
je 0x4eade7
mov byte [ebp - 0x49], 1
cmp byte [ebp - 0x49], 0
je 0x4eae52
mov eax, edi
call fcn.004ed6d0
test al, al
je 0x4eae28
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x4eae15
push 0x64
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x3c]
mov eax, edi
call fcn.004ed548
test al, al
je 0x4eae52
cmp dword [ebp - 0x3c], 0x64
jl 0x4eae0b
jmp 0x4eae52
lea ecx, [ebp - 0x30c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4eb394
pop eax
call fcn.00481428
mov eax, dword [ebp - 0x30c]
call fcn.00448c24
push 1
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405b6c
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jne 0x4eafd1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20
je 0x4eaf07
cmp dword [ebp - 0x38], 5
je 0x4eaf07
lea eax, [ebp - 0x310]
push eax
mov edx, 0x4eb3e4
lea ecx, [ebp - 0x314]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x314]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x308], eax
mov byte [ebp - 0x304], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2fc], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 0x2f4], 0xb
lea edx, [ebp - 0x308]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x310]
call fcn.00448c24
jmp 0x4eafd1
mov eax, dword [0x4f3618]
mov byte [eax], 1
mov eax, dword [0x4f3380]
cmp byte [eax], 1
je 0x4eaf35
mov eax, dword [0x4f3380]
cmp byte [eax], 2
jne 0x4eaf2d
mov eax, dword [0x4f3380]
mov byte [eax], 5
jmp 0x4eaf35
mov eax, dword [0x4f3380]
mov byte [eax], 4
push 5
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405b6c
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jne 0x4eafd1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x318]
push eax
mov edx, 0x4eb3e4
lea ecx, [ebp - 0x31c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x31c]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x308], eax
mov byte [ebp - 0x304], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2fc], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 0x2f4], 0xb
lea edx, [ebp - 0x308]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x318]
call fcn.00448c24
inc ebx
lea ecx, [ebp - 0x320]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004da8c0
mov eax, dword [ebp - 0x320]
lea edx, [ebp - 0x14]
call fcn.004bda44
cmp dword [ebp - 0x14], 0
jne 0x4eaa9a
mov eax, edi
call fcn.004ed560
test al, al
je 0x4eb038
mov eax, edi
call fcn.004ed914
test al, al
jne 0x4eb038
mov edx, 0x4eb3bc
lea ecx, [ebp - 0x324]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x324]
call fcn.00448c24
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor ebx, ebx
jmp 0x4eb053
push 0xfa
call sub.kernel32.dll_Sleep_1
inc ebx
mov eax, edi
call fcn.004ed548
test al, al
jne 0x4eb063
cmp ebx, 0x28
jl 0x4eb048
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eb081
mov eax, dword [ebp - 0x2c]
mov edx, 0x4eb40c
call fcn.00405b04
je 0x4eb13d
lea eax, [ebp - 0x258]
push eax
push 2
push 0
call sub.winspool.drv_AddMonitorA
test eax, eax
jne 0x4eb13d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xbbe
je 0x4eb129
cmp dword [ebp - 0x38], 0xb7
je 0x4eb129
cmp dword [ebp - 0x38], 5
je 0x4eb129
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x330]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4eb42c
call fcn.00481428
mov eax, dword [ebp - 0x330]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0
lea edx, [ebp - 0x338]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x328]
mov edx, 0x4eb454
call fcn.004059f4
mov eax, dword [ebp - 0x328]
call fcn.00448c24
cmp dword [ebp - 0x38], 0xbbe
jne 0x4eb13d
lea eax, [ebp - 0x258]
call fcn.004e9924
cmp byte [ebp - 0x31], 0
je 0x4eb2b1
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov dword [ebp - 0x40], eax
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.0041e740
mov eax, dword [ebp - 0x40]
mov byte [eax + 0x25], 1
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov dword [ebp - 0x44], eax
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0041e740
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x25], 1
xor eax, eax
push ebp
push 0x4eb2aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x40]
call fcn.004ea3f8
mov eax, dword [ebp - 0x2c]
call fcn.00405b6c
push eax
mov eax, dword [0x4f36b0]
mov eax, dword [eax]
call fcn.00457ec4
push eax
push 0
call sub.winspool.drv_AddPortA
test eax, eax
je 0x4eb1ee
mov eax, dword [ebp - 0x44]
call fcn.004ea3f8
lea eax, [ebp - 0x33c]
push eax
mov ecx, dword [esi + 0x34]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
call fcn.004ea4d4
mov edx, dword [ebp - 0x33c]
lea eax, [esi + 0x34]
call fcn.00405730
jmp 0x4eb28c
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
je 0x4eb28c
cmp dword [ebp - 0x38], 0x57
je 0x4eb28c
cmp dword [ebp - 0x38], 0x4c7
je 0x4eb28c
cmp dword [ebp - 0x38], 0xbbe
je 0x4eb28c
lea eax, [ebp - 0x344]
push eax
mov edx, 0x4eb42c
lea ecx, [ebp - 0x348]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x348]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0
lea edx, [ebp - 0x338]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov ecx, dword [ebp - 0x344]
lea eax, [ebp - 0x340]
mov edx, 0x4eb460
call fcn.004059f4
mov eax, dword [ebp - 0x340]
call fcn.00448c24
mov byte [ebp - 0x31], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb2b1
mov eax, dword [ebp - 0x40]
call fcn.004047a0
mov eax, dword [ebp - 0x44]
call fcn.004047a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb2ec
mov eax, dword [0x4f34a4]
cmp byte [eax], 0
je 0x4eb2df
mov eax, dword [0x4f34a4]
mov byte [eax], 0
mov eax, dword [ebp - 0x48]
call fcn.004ed914
xor eax, eax
call fcn.004c08a4
call fcn.004ebfa0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb354
lea eax, [ebp - 0x348]
mov edx, 4
call fcn.00405700
lea eax, [ebp - 0x330]
mov edx, 0xa
call fcn.00405700
lea eax, [ebp - 0x2f0]
mov edx, 0x26
call fcn.00405700
lea eax, [ebp - 0x30]
mov edx, dword [0x4baf40]
call fcn.0040656c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405700
lea eax, [ebp + 8]
call fcn.004056dc
ret