Function at 0x413e00
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x61ba08
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0x25c]
mov esi, dword [esp + 0x264]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push 0x100
lea edx, [esp + 0x15c]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x38], eax
call fcn.005c76b0
add esp, 0x20
cmp eax, ebp
jne 0x414522
push ebp
lea eax, [esp + 0x14c]
xor edx, edx
push eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xc0], ebp
mov word [esp + 0xbc], dx
call fcn.00401960
mov dword [esp + 0x254], ebp
xor ecx, ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x88], ebp
mov word [esp + 0x84], cx
mov byte [esp + 0x254], 1
mov ecx, dword [esp + 0xb0]
cmp ecx, ebp
jne 0x413ee7
lea ecx, [esp + 0xb4]
mov eax, dword [0x70f64c]
cmp eax, ebp
jne 0x413ef5
mov eax, 0x70f650
push ebp
push ecx
push esi
push eax
push 0x6523bc
lea ecx, [esp + 0x94]
call fcn.00411bf0
push 0x5c
push 0x2f
lea ecx, [esp + 0x88]
call fcn.0040fae0
xor edx, edx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x94], ebp
mov word [esp + 0x90], dx
mov byte [esp + 0x254], 2
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x413f4c
lea eax, [esp + 0x84]
push ebp
push eax
push 0x64edec
lea ecx, [esp + 0x98]
call fcn.00402190
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413f71
lea eax, [esp + 0x90]
push 0x5c
push eax
call fcn.005f80fb
add esp, 8
cmp eax, ebp
je 0x4140b1
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413f9e
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4140b1
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413fc0
lea eax, [esp + 0x90]
add eax, 6
push 0x5c
push eax
call fcn.005fa163
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4140b1
mov bl, 3
lea ebx, [ebx]
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413ff2
lea eax, [esp + 0x90]
xor edx, edx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], ebp
mov word [esp + 0x7c], dx
call fcn.004017d0
mov byte [esp + 0x254], bl
mov eax, dword [esp + 0x74]
mov ecx, eax
cmp eax, ebp
jne 0x414023
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x414035
lea eax, [esp + 0x90]
mov edx, esi
sub edx, eax
xor eax, eax
sar edx, 1
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x74]
cmp eax, ebp
jne 0x41404d
lea eax, [esp + 0x78]
push ebp
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x414075
mov eax, dword [esp + 0x74]
cmp eax, ebp
jne 0x414067
lea eax, [esp + 0x78]
push ebp
push eax
call fcn.0049c1c0
add esp, 8
test eax, eax
je 0x4140a0
push 0x5c
add esi, 2
push esi
call fcn.005fa163
add esp, 8
mov esi, eax
mov byte [esp + 0x254], 2
lea ecx, [esp + 0x74]
call fcn.004011f0
cmp esi, ebp
jne 0x413fe0
jmp 0x4140b1
mov byte [esp + 0x254], 2
lea ecx, [esp + 0x74]
call fcn.004011f0
push 0x2000
call fcn.005fac1f
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x41410f
mov byte [esp + 0x254], 1
lea ecx, [esp + 0x8c]
call fcn.004011f0
mov byte [esp + 0x254], 0
lea ecx, [esp + 0x80]
call fcn.004011f0
mov dword [esp + 0x254], 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.004011f0
mov eax, 0xffffff98
jmp 0x414522
xor ecx, ecx
mov byte [esp + 0x17], 0
mov dword [esp + 0x98], ebp
mov dword [esp + 0xa0], ebp
mov word [esp + 0x9c], cx
mov byte [esp + 0x254], 4
mov edx, dword [esp + 0x18]
push edx
call fcn.005c7d40
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x4144b6
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x41415d
lea eax, [esp + 0x84]
push 0x6523b4
push eax
call fcn.005fb2bd
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x4141c5
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x414183
lea eax, [esp + 0x84]
push ebp
push eax
push 0x65244c
lea ecx, [esp + 0xa4]
call fcn.00402190
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x4141a8
lea eax, [esp + 0x9c]
push 0x6523b4
push eax
call fcn.005fb2bd
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4144b6
mov byte [esp + 0x17], 1
mov ebx, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x18]
push 0x2000
push ebx
push eax
call fcn.005c7950
mov edi, eax
add esp, 0xc
cmp edi, ebp
jle 0x4141fe
push esi
push 1
push edi
push ebx
call fcn.005fb175
add esp, 0x10
cmp eax, 1
je 0x4141d0
or edi, 0xffffffff
push esi
call fcn.005faf97
lea ecx, [esp + 0x14c]
push str.idmcchandler2.dll
push ecx
call fcn.005f9c10
add esp, 0xc
test eax, eax
jne 0x41423a
lea edx, [esp + 0x148]
push str.idmcchandler2_64.dll
push edx
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x4143e8
cmp byte [esp + 0x17], 0
je 0x414255
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x414267
lea eax, [esp + 0x9c]
jmp 0x414267
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x414267
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xc0]
call fcn.00402160
mov byte [esp + 0x254], 5
xor eax, eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ebp
mov word [esp + 0x78], ax
mov bl, 6
mov byte [esp + 0x254], bl
lea ecx, [esp + 0x148]
push str.idmcchandler2.dll
push ecx
call fcn.005f9c10
add esp, 8
mov ecx, 0x6523fc
test eax, eax
jne 0x4142b7
mov ecx, 0x6523d0
mov eax, dword [0x70f66c]
cmp eax, ebp
jne 0x4142c5
mov eax, 0x70f670
push ebp
push ecx
push eax
push 0x64ed70
lea ecx, [esp + 0x84]
call fcn.00402300
mov eax, dword [esp + 0x74]
mov ecx, eax
cmp eax, ebp
jne 0x4142e7
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0xbc]
cmp eax, ebp
jne 0x4142f9
lea eax, [esp + 0xc0]
push ebp
push ebp
push ecx
push eax
call fcn.0049bc10
add esp, 0x10
test eax, eax
jne 0x4143bf
xor edx, edx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xac], ebp
mov word [esp + 0xa8], dx
mov byte [esp + 0x254], 7
mov eax, dword [esp + 0x74]
cmp eax, ebp
jne 0x414339
lea eax, [esp + 0x78]
push ebp
push eax
push 0x6523cc
lea ecx, [esp + 0xb0]
call fcn.00402190
mov eax, dword [esp + 0xa4]
mov ecx, eax
cmp eax, ebp
jne 0x414360
lea ecx, [esp + 0xa8]
mov eax, dword [esp + 0xbc]
cmp eax, ebp
jne 0x414372
lea eax, [esp + 0xc0]
push ebp
push ebp
push ecx
push eax
call fcn.0049bc10
add esp, 0x10
test eax, eax
je 0x4143ac
mov eax, dword [esp + 0x74]
mov ecx, eax
cmp eax, ebp
jne 0x414390
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0xa4]
cmp eax, ebp
jne 0x4143a2
lea eax, [esp + 0xa8]
push ecx
push eax
call fcn.004111c0
add esp, 8
mov byte [esp + 0x254], bl
lea ecx, [esp + 0xa4]
call fcn.004011f0
mov byte [esp + 0x254], 5
lea ecx, [esp + 0x74]
call fcn.004011f0
mov byte [esp + 0x254], 4
lea ecx, [esp + 0xbc]
call fcn.004011f0
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x4144ba
lea eax, [esp + 0x148]
push str..dll
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x414484
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x41441e
lea eax, [esp + 0x84]
push 0x40
lea ecx, [esp + 0x10c]
push ecx
push eax
call fcn.004111e0
add esp, 0xc
test eax, eax
je 0x41447a
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x414447
lea eax, [esp + 0x9c]
push 0x40
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.004111e0
add esp, 0xc
test eax, eax
je 0x41447a
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x10c]
push ecx
call fcn.005fa111
add esp, 8
test eax, eax
je 0x414484
mov edx, dword [esp + 0x20]
mov dword [edx], 1
mov eax, dword [esp + 0x80]
mov ecx, eax
cmp eax, ebp
jne 0x414498
lea ecx, [esp + 0x84]
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x4144aa
lea eax, [esp + 0x9c]
push ecx
push eax
call fcn.004111c0
add esp, 8
jmp 0x4144ba
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
call fcn.005c7b00
push ebx
call fcn.005f9aa9
add esp, 8
mov byte [esp + 0x254], 2
lea ecx, [esp + 0x98]
call fcn.004011f0
mov byte [esp + 0x254], 1
lea ecx, [esp + 0x8c]
call fcn.004011f0
mov byte [esp + 0x254], 0
lea ecx, [esp + 0x80]
call fcn.004011f0
mov dword [esp + 0x254], 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.004011f0
mov eax, edi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.005f85e7
add esp, 0x244
ret