Function at 0x46c0b0
Capabilities:
Create directory
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0d66
mov eax, dword fs:[0]
push eax
mov eax, 0x416c
call fcn.004c43c0
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov esi, edx
push SysReAllocString
push esi
mov dword [ebp - 0x4118], eax
mov dword [ebp - 0x4100], ebx
mov dword [ebp - 0x40e4], ecx
mov dword [ebp - 0x40e0], 0x46c030
mov dword [ebp - 0x40dc], 0x46c050
mov dword [ebp - 0x4124], 0x46c070
mov dword [ebp - 0x4120], 0x46c090
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4108], eax
cmp eax, 0xffffffff
jne 0x46c1a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x46c1a4
push 0x51cf30
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x40e4]
push 5
push 0x51cf5c
mov ecx, ebx
call fcn.00408810
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46c176
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov ecx, ebx
call fcn.00407820
push 2
mov eax, 0x51cf68
mov ecx, ebx
call fcn.00407820
xor al, al
jmp 0x46ccaf
lea edx, [ebp - 0x4110]
mov dword [ebp - 0x4110], 0x46dc80
mov dword [ebp - 0x410c], 0x46dcb0
mov dword [ebp - 0x40d8], 0x46df50
mov dword [ebp - 0x40d4], 0x46dfb0
mov dword [ebp - 0x40d0], 0x46dfc0
mov dword [ebp - 0x40cc], 0x46e020
mov dword [ebp - 0x40c8], edx
mov dword [ebp - 0x40c0], edi
mov dword [ebp - 0x40c4], edi
call fcn.0046e140
lea eax, [ebp - 0x40d8]
push eax
lea ecx, [ebp - 0x4178]
push ecx
lea edx, [ebp - 0x4124]
lea ecx, [ebp - 0x40e0]
mov dword [ebp - 0x4178], edi
mov dword [ebp - 0x4174], edi
mov dword [ebp - 0x4170], edi
mov dword [ebp - 0x416c], edi
mov dword [ebp - 0x4168], edi
mov dword [ebp - 0x4164], edi
mov dword [ebp - 0x4160], edi
mov dword [ebp - 0x415c], edi
mov dword [ebp - 0x4148], edi
mov dword [ebp - 0x4144], edi
mov dword [ebp - 0x4140], edi
mov dword [ebp - 0x413c], edi
mov dword [ebp - 0x4138], edi
mov dword [ebp - 0x4134], edi
mov dword [ebp - 0x4130], edi
call fcn.00470620
mov esi, eax
add esp, 8
cmp esi, edi
je 0x46c292
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.0046e5b0
xor edi, edi
mov dword [ebp - 0x40e8], esi
cmp esi, edi
je 0x46c2ee
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.0046e5b0
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x46c2d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46c2cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46c2d5
mov dword [ebp - 0x4108], 0xffffffff
mov ecx, dword [ebp - 0x40e4]
push 0x14
push str.SzArEx_Open
call fcn.00408810
xor al, al
jmp 0x46ccaf
xor esi, esi
mov dword [ebp - 0x4114], 0xffffffff
mov dword [ebp - 0x40fc], edi
mov dword [ebp - 0x411c], edi
mov dword [ebp - 0x40ec], esi
cmp dword [ebp - 0x415c], edi
jbe 0x46cbda
mov edi, dword [ebx]
test edi, edi
je 0x46c363
mov edx, esi
mov dword [ebp - 0x40f8], edx
fild dword [ebp - 0x40f8]
test edx, edx
jns 0x46c336
fadd dword [0x51d128]
mov eax, dword [ebp - 0x415c]
fild dword [ebp - 0x415c]
test eax, eax
jns 0x46c34c
fadd dword [0x51d128]
fdivp st(1)
fmul qword [0x51d120]
call fcn.004c4540
mov ecx, dword [ebx + 4]
push ecx
push eax
call edi
add esp, 8
mov ecx, dword [ebp - 0x4138]
mov eax, esi
shl eax, 5
add eax, dword [ebp - 0x4168]
lea edi, [ecx + esi*4 + 4]
mov dword [ebp - 0x40f8], eax
mov eax, dword [edi]
sub eax, dword [ecx + esi*4]
je 0x46c9db
lea esi, [eax + eax + 2]
test esi, esi
je 0x46c9fc
push esi
call fcn.004bc710
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46c9fc
push esi
push 0
push ebx
call fcn.004c3610
mov edx, dword [ebp - 0x4138]
mov eax, dword [ebp - 0x40ec]
mov eax, dword [edx + eax*4]
mov ecx, dword [edi]
mov edx, dword [ebp - 0x4134]
add esp, 0xc
sub ecx, eax
lea edx, [edx + eax*2]
je 0x46c3e3
mov eax, ebx
sub edx, ebx
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x46c3d6
xor esi, esi
xor eax, eax
mov word [ebp - 0x2c], ax
mov edi, 7
mov eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
lea edx, [eax + 2]
jmp 0x46c400
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46c400
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408810
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp - 0x1c], esi
jbe 0x46c45e
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
mov edx, ecx
cmp esi, 8
jae 0x46c43a
lea edx, [ebp - 0x2c]
cmp word [edx + eax*2], 0x2f
jne 0x46c458
cmp esi, 8
jae 0x46c449
lea ecx, [ebp - 0x2c]
mov edx, 0x5c
mov word [ecx + eax*2], dx
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, dword [ebp - 0x1c]
jb 0x46c430
push ebx
call fcn.004bcb59
mov esi, dword [ebp - 0x4118]
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46c482
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00408810
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x46ca1d
mov ecx, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x46c4bd
lea ecx, [ebp - 0x48]
cmp word [ecx + eax*2], 0x5c
je 0x46c4d3
push 1
mov eax, 0x5118c0
lea ecx, [ebp - 0x48]
call fcn.00407820
push 0
lea ecx, [ebp - 0x2c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00407720
lea edx, [ebp - 0x4124]
push edx
lea eax, [ebp - 0x40e0]
push eax
lea ecx, [ebp - 0x40f4]
push ecx
lea edx, [ebp - 0x4104]
push edx
lea eax, [ebp - 0x411c]
push eax
mov eax, dword [ebp - 0x40ec]
lea ecx, [ebp - 0x40fc]
push ecx
lea edx, [ebp - 0x4114]
push edx
push eax
lea ecx, [ebp - 0x40d8]
xor esi, esi
push ecx
lea eax, [ebp - 0x4178]
mov dword [ebp - 0x4104], esi
mov dword [ebp - 0x40f4], esi
call fcn.00470a10
add esp, 0x24
mov dword [ebp - 0x40e8], eax
cmp eax, esi
jne 0x46ca27
mov edx, dword [ebp - 0x40f8]
cmp byte [edx + 0x19], 0
je 0x46c5aa
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x46c564
lea eax, [ebp - 0x48]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x46ca7e
cmp eax, 0xce
je 0x46ca7e
cmp eax, 3
je 0x46ca7e
lea ecx, [ebp - 0x48]
call fcn.00407bb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00407bb0
jmp 0x46c9b5
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0x40f0]
mov dword [ebp - 0x40f0], 0x5c
call fcn.00404ea0
cmp eax, 0xffffffff
je 0x46c600
push eax
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00407470
mov eax, dword [ebp - 0x64]
mov esi, ebx
cmp dword [ebp - 0x50], esi
jae 0x46c5e4
lea eax, [ebp - 0x64]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x50], esi
jb 0x46c600
mov edx, dword [ebp - 0x64]
push edx
call fcn.004bb4d8
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
jmp 0x46c610
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x46c61c
lea eax, [ebp - 0x48]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x40f0], esi
cmp esi, 0xffffffff
jne 0x46c795
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46c795
mov eax, dword [ebp - 0x4100]
mov eax, dword [eax + 8]
test eax, eax
je 0x46c67b
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x46c66d
lea ecx, [ebp - 0x2c]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x46c747
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x46c610
lea edx, [ebp - 0x80]
push 0x51d054
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040ac00
push eax
mov eax, 0x51cf68
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004070c0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00407a10
cmp dword [ebp - 0x50], 8
jb 0x46c6df
mov eax, dword [ebp - 0x64]
push eax
call fcn.004bb4d8
add esp, 4
xor esi, esi
xor ecx, ecx
mov ebx, 7
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
jb 0x46c708
mov edx, dword [ebp - 0x80]
push edx
call fcn.004bb4d8
add esp, 4
mov ecx, dword [ebp - 0x40e4]
call fcn.004089a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x1c]
push str.XYUpdate.exe
mov edi, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00406090
test eax, eax
jne 0x46cb47
push 0x51d088
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46c96f
cmp dword [ebp - 0x34], esi
jb 0x46c758
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
jb 0x46c784
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
jmp 0x46c9b5
mov edx, dword [ebp - 0x40fc]
mov ebx, dword [ebp - 0x40f4]
mov eax, dword [ebp - 0x4104]
lea ecx, [ebp - 0x40f0]
lea eax, [eax + edx]
push ecx
lea edi, [ebp - 0x40f4]
mov dword [ebp - 0x40f4], ebx
call fcn.0046daf0
add esp, 4
test eax, eax
jne 0x46c85d
cmp dword [ebp - 0x40f4], ebx
jne 0x46c85d
cmp esi, 0xffffffff
je 0x46c7ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46c7ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40f8]
cmp byte [ecx + 0x1d], 0
mov ebx, 8
je 0x46c816
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x46c80b
lea eax, [ebp - 0x48]
mov edx, dword [ecx + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x34], ebx
jb 0x46c827
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], ebx
jb 0x46c852
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jmp 0x46c9af
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x46c88a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46c880
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46c88a
mov dword [ebp - 0x40f0], 0xffffffff
lea ecx, [ebp - 0x9c]
push 0x51d0cc
push ecx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040ac00
push eax
mov eax, 0x51cf68
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.004070c0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00407a10
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x46c8f1
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004bb4d8
add esp, 4
xor esi, esi
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xb8], ax
cmp dword [ebp - 0x88], edi
jb 0x46c923
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x1c]
xor edx, edx
push str.XYUpdate.exe
lea edi, [edx + 0xc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], dx
call fcn.00406090
test eax, eax
jne 0x46cb94
mov eax, dword [ebp - 0x40f0]
cmp eax, 0xffffffff
je 0x46c96f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46c96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x46c985
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x48], cx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x18], edi
jb 0x46c9a9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x40ec]
inc eax
mov dword [ebp - 0x40ec], eax
cmp eax, dword [ebp - 0x415c]
jae 0x46cbda
mov ebx, dword [ebp - 0x4100]
mov esi, eax
jmp 0x46c318
mov ecx, dword [ebp - 0x40e4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40e8], 8
call fcn.00408810
jmp 0x46cbda
mov ecx, dword [ebp - 0x40e4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40e8], 2
call fcn.00408810
jmp 0x46cbda
push str.invalid_string_position
call fcn.00474e77
mov ecx, dword [ebp - 0x40e4]
push 0x10
push str.SzArEx_Extract
call fcn.00408810
cmp dword [ebp - 0x34], ebx
jb 0x46ca4a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], ebx
jb 0x46ca70
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], cx
jmp 0x46cbd7
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x80]
push 0x51d044
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040ac00
push eax
mov eax, 0x51cf68
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004070c0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00407a10
mov ebx, 8
cmp dword [ebp - 0x50], ebx
jb 0x46cae0
mov eax, dword [ebp - 0x64]
push eax
call fcn.004bb4d8
add esp, 4
xor esi, esi
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], ebx
jb 0x46cb04
mov edx, dword [ebp - 0x80]
push edx
call fcn.004bb4d8
add esp, 4
cmp dword [ebp - 0x34], ebx
jb 0x46cb15
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], ebx
jb 0x46cb39
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
jmp 0x46cbd7
push 0x51d07c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x46cb68
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x46cb8c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
jmp 0x46cbd4
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x46cbaa
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], edi
jb 0x46cbce
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x40fc]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
call dword [ebp - 0x40dc]
mov edx, dword [ebp - 0x4148]
push edx
lea eax, [ebp - 0x40e0]
push eax
call dword [ebp - 0x40dc]
mov ecx, dword [ebp - 0x4144]
push ecx
lea edx, [ebp - 0x40e0]
push edx
call dword [ebp - 0x40dc]
mov eax, dword [ebp - 0x4140]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
call dword [ebp - 0x40dc]
mov edx, dword [ebp - 0x413c]
push edx
lea eax, [ebp - 0x40e0]
push eax
call dword [ebp - 0x40dc]
mov ecx, dword [ebp - 0x4138]
push ecx
lea edx, [ebp - 0x40e0]
push edx
call dword [ebp - 0x40dc]
mov eax, dword [ebp - 0x4134]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
call dword [ebp - 0x40dc]
xor edi, edi
add esp, 0x38
lea eax, [ebp - 0x40e0]
lea esi, [ebp - 0x4178]
mov dword [ebp - 0x4134], edi
mov dword [ebp - 0x4130], edi
call fcn.0046e4f0
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x46cca4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46cca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp dword [ebp - 0x40e8], edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret