Function at 0x4eba30
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, 0x6a
push 0
push 0
dec ecx
jne 0x4eba39
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 [0x4a74e0]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4ec7ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 1
mov ecx, 0x4ec7e8
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov edi, eax
mov ecx, 0x4ec7f8
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
mov esi, dword [eax]
xor ebx, ebx
call fcn.004ed450
xor eax, eax
push ebp
push 0x4ec762
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004eac38
jmp 0x4ebb10
lea eax, [ebx + ebx*2]
mov edx, dword [esi + 0x50]
mov eax, dword [edx + eax*8 + 4]
lea edx, [ebp - 0x25c]
call fcn.004bda70
mov eax, dword [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.00405b04
jne 0x4ebb0f
lea eax, [ebp - 0x30]
lea edx, [ebx + ebx*2]
mov ecx, dword [esi + 0x50]
lea edx, [ecx + edx*8]
mov ecx, dword [0x4a74e0]
call fcn.004066c8
inc ebx
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jl 0x4ebad3
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jle 0x4ebb32
call fcn.00405100
jmp 0x4ec769
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x2c]
call fcn.004bda70
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x2c]
call fcn.00405774
lea edx, [ebp - 0x264]
mov eax, dword [ebp - 0x24]
call fcn.004bda70
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.004db56c
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x18]
call fcn.004bda70
jmp 0x4ebe85
push 0x20
lea ecx, [ebp - 0x26c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x26c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ebc34
mov eax, edi
call fcn.004eea9c
test al, al
je 0x4ebc34
lea ecx, [ebp - 0x270]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdd24
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x274]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x274]
pop edx
call fcn.004be1bc
test al, al
je 0x4ebc34
mov eax, dword [ebp - 0x48]
call fcn.004eab80
call fcn.004ee068
test al, al
jne 0x4ebc8c
mov eax, edi
call fcn.004eee8c
test al, al
jne 0x4ebce8
lea ecx, [ebp - 0x27c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ec810
call fcn.00481428
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
mov edx, 0x4ec838
call fcn.004059f4
mov eax, dword [ebp - 0x278]
call fcn.00448c24
jmp 0x4ebce8
mov eax, dword [esi + 4]
mov ecx, edi
mov edx, dword [ebp - 0x10]
call fcn.004eaa28
test al, al
je 0x4ebce8
mov eax, edi
call fcn.004eee8c
test al, al
jne 0x4ebce8
lea ecx, [ebp - 0x284]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ec810
pop eax
call fcn.00481428
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x280]
mov edx, 0x4ec848
call fcn.004059f4
mov eax, dword [ebp - 0x280]
call fcn.00448c24
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
lea ecx, [ebp - 0x28c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x28c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x288]
call fcn.004058d4
mov eax, dword [ebp - 0x288]
push eax
lea ecx, [ebp - 0x294]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdd24
mov eax, dword [ebp - 0x294]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x290]
call fcn.004058d4
mov eax, dword [ebp - 0x290]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ebd83
push 0x20
lea ecx, [ebp - 0x298]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x298]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ebe66
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405b04
je 0x4ebe66
mov eax, dword [ebp + 8]
call fcn.0040af54
test al, al
je 0x4ebe66
push 0x20
lea ecx, [ebp - 0x29c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x29c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x2a4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2a4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2a0]
call fcn.004058d4
mov eax, dword [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x2ac]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdd24
mov eax, dword [ebp - 0x2ac]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2a8]
call fcn.004058d4
mov eax, dword [ebp - 0x2a8]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ebe66
push 0x20
lea ecx, [ebp - 0x2b0]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2b0]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
inc ebx
lea ecx, [ebp - 0x2b4]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004db56c
mov eax, dword [ebp - 0x2b4]
lea edx, [ebp - 0x18]
call fcn.004bda70
cmp dword [ebp - 0x18], 0
jne 0x4ebbb9
mov eax, edi
call fcn.004eeab4
test al, al
je 0x4ebecd
mov eax, edi
call fcn.004ef010
test al, al
jne 0x4ebecd
lea ecx, [ebp - 0x2b8]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ec858
call fcn.00481428
mov eax, dword [ebp - 0x2b8]
call fcn.00448c24
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ec4b5
xor ebx, ebx
lea ecx, [ebp - 0x2bc]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004db56c
mov eax, dword [ebp - 0x2bc]
lea edx, [ebp - 0x14]
call fcn.004bda70
jmp 0x4ec46d
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
push 0x201
lea eax, [ebp - 0x24b]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4ebf39
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x24b]
mov ecx, 0x201
call fcn.0040594c
jmp 0x4ebf47
mov byte [ebp - 0x31], 0
call fcn.00405100
jmp 0x4ec769
lea ecx, [ebp - 0x2c0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
mov edx, dword [ebp - 0x2c0]
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 0x4ec11c
push 0x20
lea ecx, [ebp - 0x2c4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2c4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x2cc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2cc]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2c8]
call fcn.004058d4
mov eax, dword [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x2d4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x2d4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2d0]
call fcn.004058d4
mov eax, dword [ebp - 0x2d0]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ec039
push 0x20
lea ecx, [ebp - 0x2d8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2d8]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ec11c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405b04
je 0x4ec11c
mov eax, dword [ebp + 8]
call fcn.0040af54
test al, al
je 0x4ec11c
push 0x20
lea ecx, [ebp - 0x2dc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2dc]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x2e4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2e4]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2e0]
call fcn.004058d4
mov eax, dword [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2ec]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x2ec]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2e8]
call fcn.004058d4
mov eax, dword [ebp - 0x2e8]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ec11c
push 0x20
lea ecx, [ebp - 0x2f0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x2f0]
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 0x4ec44e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20
je 0x4ec1d1
cmp dword [ebp - 0x38], 5
je 0x4ec1d1
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x2f8]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ec880
call fcn.00481428
mov eax, dword [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x310], eax
mov byte [ebp - 0x30c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x308], eax
mov byte [ebp - 0x304], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2fc], 0xb
lea edx, [ebp - 0x310]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2f4]
call fcn.00448c24
jmp 0x4ec44e
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4ec200
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4ec44e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004bdfbc
test al, al
je 0x4ec44e
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ec2cf
mov eax, edi
call fcn.004eea9c
test al, al
je 0x4ec2cf
mov eax, dword [ebp - 0x48]
call fcn.004eab80
mov byte [ebp - 0x49], 0
call fcn.004ee068
test al, al
jne 0x4ec239
mov byte [ebp - 0x49], 1
jmp 0x4ec24e
mov eax, dword [esi + 4]
mov ecx, edi
mov edx, dword [ebp - 0x10]
call fcn.004eaa28
test al, al
je 0x4ec24e
mov byte [ebp - 0x49], 1
cmp byte [ebp - 0x49], 0
je 0x4ec2cf
mov eax, edi
call fcn.004eee8c
test al, al
je 0x4ec28f
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x4ec27c
push 0x64
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x3c]
mov eax, edi
call fcn.004eea9c
test al, al
je 0x4ec2cf
cmp dword [ebp - 0x3c], 0x64
jl 0x4ec272
jmp 0x4ec2cf
lea ecx, [ebp - 0x318]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ec810
pop eax
call fcn.00481428
mov ecx, dword [ebp - 0x318]
lea eax, [ebp - 0x314]
mov edx, 0x4ec8a8
call fcn.004059f4
mov eax, dword [ebp - 0x314]
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 0x4ec44e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20
je 0x4ec384
cmp dword [ebp - 0x38], 5
je 0x4ec384
lea eax, [ebp - 0x31c]
push eax
mov edx, 0x4ec880
lea ecx, [ebp - 0x320]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x320]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x310], eax
mov byte [ebp - 0x30c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x308], eax
mov byte [ebp - 0x304], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2fc], 0xb
lea edx, [ebp - 0x310]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x31c]
call fcn.00448c24
jmp 0x4ec44e
mov eax, dword [0x4f5628]
mov byte [eax], 1
mov eax, dword [0x4f5390]
cmp byte [eax], 1
je 0x4ec3b2
mov eax, dword [0x4f5390]
cmp byte [eax], 2
jne 0x4ec3aa
mov eax, dword [0x4f5390]
mov byte [eax], 5
jmp 0x4ec3b2
mov eax, dword [0x4f5390]
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 0x4ec44e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x324]
push eax
mov edx, 0x4ec880
lea ecx, [ebp - 0x328]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x328]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x310], eax
mov byte [ebp - 0x30c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x308], eax
mov byte [ebp - 0x304], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2fc], 0xb
lea edx, [ebp - 0x310]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x324]
call fcn.00448c24
inc ebx
lea ecx, [ebp - 0x32c]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004db56c
mov eax, dword [ebp - 0x32c]
lea edx, [ebp - 0x14]
call fcn.004bda70
cmp dword [ebp - 0x14], 0
jne 0x4ebf01
mov eax, edi
call fcn.004eeab4
test al, al
je 0x4ec4b5
mov eax, edi
call fcn.004ef010
test al, al
jne 0x4ec4b5
mov edx, 0x4ec858
lea ecx, [ebp - 0x330]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x330]
call fcn.00448c24
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor ebx, ebx
jmp 0x4ec4d0
push 0xfa
call sub.kernel32.dll_Sleep_1
inc ebx
mov eax, edi
call fcn.004eea9c
test al, al
jne 0x4ec4e0
cmp ebx, 0x28
jl 0x4ec4c5
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ec4fe
mov eax, dword [ebp - 0x2c]
mov edx, 0x4ec8b8
call fcn.00405b04
je 0x4ec5ba
lea eax, [ebp - 0x258]
push eax
push 2
push 0
call sub.winspool.drv_AddMonitorA
test eax, eax
jne 0x4ec5ba
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xbbe
je 0x4ec5a6
cmp dword [ebp - 0x38], 0xb7
je 0x4ec5a6
cmp dword [ebp - 0x38], 5
je 0x4ec5a6
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x33c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ec8d8
call fcn.00481428
mov eax, dword [ebp - 0x33c]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x344], eax
mov byte [ebp - 0x340], 0
lea edx, [ebp - 0x344]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov ecx, dword [ebp - 0x338]
lea eax, [ebp - 0x334]
mov edx, 0x4ec900
call fcn.004059f4
mov eax, dword [ebp - 0x334]
call fcn.00448c24
cmp dword [ebp - 0x38], 0xbbe
jne 0x4ec5ba
lea eax, [ebp - 0x258]
call fcn.004ead5c
cmp byte [ebp - 0x31], 0
je 0x4ec72e
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 0x4ec727
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x40]
call fcn.004eb830
mov eax, dword [ebp - 0x2c]
call fcn.00405b6c
push eax
mov eax, dword [0x4f56c0]
mov eax, dword [eax]
call fcn.00457ec4
push eax
push 0
call sub.winspool.drv_AddPortA
test eax, eax
je 0x4ec66b
mov eax, dword [ebp - 0x44]
call fcn.004eb830
lea eax, [ebp - 0x348]
push eax
mov ecx, dword [esi + 0x34]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
call fcn.004eb90c
mov edx, dword [ebp - 0x348]
lea eax, [esi + 0x34]
call fcn.00405730
jmp 0x4ec709
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
je 0x4ec709
cmp dword [ebp - 0x38], 0x57
je 0x4ec709
cmp dword [ebp - 0x38], 0x4c7
je 0x4ec709
cmp dword [ebp - 0x38], 0xbbe
je 0x4ec709
lea eax, [ebp - 0x350]
push eax
mov edx, 0x4ec8d8
lea ecx, [ebp - 0x354]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x354]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x344], eax
mov byte [ebp - 0x340], 0
lea edx, [ebp - 0x344]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov ecx, dword [ebp - 0x350]
lea eax, [ebp - 0x34c]
mov edx, 0x4ec90c
call fcn.004059f4
mov eax, dword [ebp - 0x34c]
call fcn.00448c24
mov byte [ebp - 0x31], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec72e
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 0x4ec769
mov eax, dword [0x4f54b4]
cmp byte [eax], 0
je 0x4ec75c
mov eax, dword [0x4f54b4]
mov byte [eax], 0
mov eax, dword [ebp - 0x48]
call fcn.004ef010
xor eax, eax
call fcn.004c0910
call fcn.004ed4c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec7d1
lea eax, [ebp - 0x354]
mov edx, 4
call fcn.00405700
lea eax, [ebp - 0x33c]
mov edx, 0xb
call fcn.00405700
lea eax, [ebp - 0x2f8]
mov edx, 0x28
call fcn.00405700
lea eax, [ebp - 0x30]
mov edx, dword [0x4a74e0]
call fcn.0040656c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405700
lea eax, [ebp + 8]
call fcn.004056dc
ret