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

Disassembly:
push 0xffffffffffffffff
push 0x643568
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
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.005e5830
add esp, 0x20
cmp eax, ebp
jne 0x413e42
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.00401990
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 0x413807
lea ecx, [esp + 0xb4]
mov eax, dword [0x75dc38]
cmp eax, ebp
jne 0x413815
mov eax, 0x75dc3c
push ebp
push ecx
push esi
push eax
push 0x67c5b8
lea ecx, [esp + 0x94]
call fcn.00411610
push 0x5c
push 0x2f
lea ecx, [esp + 0x88]
call fcn.0040f8f0
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 0x41386c
lea eax, [esp + 0x84]
push ebp
push eax
push 0x678ea8
lea ecx, [esp + 0x98]
call fcn.004021c0
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413891
lea eax, [esp + 0x90]
push 0x5c
push eax
call fcn.0061fd52
add esp, 8
cmp eax, ebp
je 0x4139d1
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x4138be
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4139d1
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x4138e0
lea eax, [esp + 0x90]
add eax, 6
push 0x5c
push eax
call fcn.00621db0
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4139d1
mov bl, 3
lea ebx, [ebx]
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413912
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.00401800
mov byte [esp + 0x254], bl
mov eax, dword [esp + 0x74]
mov ecx, eax
cmp eax, ebp
jne 0x413943
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x8c]
cmp eax, ebp
jne 0x413955
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 0x41396d
lea eax, [esp + 0x78]
push ebp
push eax
call fcn.004ab030
add esp, 8
test eax, eax
jne 0x413995
mov eax, dword [esp + 0x74]
cmp eax, ebp
jne 0x413987
lea eax, [esp + 0x78]
push ebp
push eax
call fcn.004ab210
add esp, 8
test eax, eax
je 0x4139c0
push 0x5c
add esi, 2
push esi
call fcn.00621db0
add esp, 8
mov esi, eax
mov byte [esp + 0x254], 2
lea ecx, [esp + 0x74]
call fcn.00401210
cmp esi, ebp
jne 0x413900
jmp 0x4139d1
mov byte [esp + 0x254], 2
lea ecx, [esp + 0x74]
call fcn.00401210
push 0x2000
call fcn.0062286f
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x413a2f
mov byte [esp + 0x254], 1
lea ecx, [esp + 0x8c]
call fcn.00401210
mov byte [esp + 0x254], 0
lea ecx, [esp + 0x80]
call fcn.00401210
mov dword [esp + 0x254], 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.00401210
mov eax, 0xffffff98
jmp 0x413e42
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.005e5ec0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x413dd6
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x413a7d
lea eax, [esp + 0x84]
push 0x67c5b0
push eax
call fcn.00622f0d
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x413ae5
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x413aa3
lea eax, [esp + 0x84]
push ebp
push eax
push 0x67c648
lea ecx, [esp + 0xa4]
call fcn.004021c0
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x413ac8
lea eax, [esp + 0x9c]
push 0x67c5b0
push eax
call fcn.00622f0d
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x413dd6
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.005e5ad0
mov edi, eax
add esp, 0xc
cmp edi, ebp
jle 0x413b1e
push esi
push 1
push edi
push ebx
call fcn.00622dc5
add esp, 0x10
cmp eax, 1
je 0x413af0
or edi, 0xffffffff
push esi
call fcn.00622be7
lea ecx, [esp + 0x14c]
push str.idmcchandler2.dll
push ecx
call fcn.006218e0
add esp, 0xc
test eax, eax
jne 0x413b5a
lea edx, [esp + 0x148]
push str.idmcchandler2_64.dll
push edx
call fcn.006218e0
add esp, 8
test eax, eax
je 0x413d08
cmp byte [esp + 0x17], 0
je 0x413b75
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x413b87
lea eax, [esp + 0x9c]
jmp 0x413b87
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x413b87
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xc0]
call fcn.00402190
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.006218e0
add esp, 8
mov ecx, 0x67c5f8
test eax, eax
jne 0x413bd7
mov ecx, 0x67c5cc
mov eax, dword [0x75dc58]
cmp eax, ebp
jne 0x413be5
mov eax, 0x75dc5c
push ebp
push ecx
push eax
push 0x678de0
lea ecx, [esp + 0x84]
call fcn.00402330
mov eax, dword [esp + 0x74]
mov ecx, eax
cmp eax, ebp
jne 0x413c07
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0xbc]
cmp eax, ebp
jne 0x413c19
lea eax, [esp + 0xc0]
push ebp
push ebp
push ecx
push eax
call fcn.004aac60
add esp, 0x10
test eax, eax
jne 0x413cdf
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 0x413c59
lea eax, [esp + 0x78]
push ebp
push eax
push 0x67c5c8
lea ecx, [esp + 0xb0]
call fcn.004021c0
mov eax, dword [esp + 0xa4]
mov ecx, eax
cmp eax, ebp
jne 0x413c80
lea ecx, [esp + 0xa8]
mov eax, dword [esp + 0xbc]
cmp eax, ebp
jne 0x413c92
lea eax, [esp + 0xc0]
push ebp
push ebp
push ecx
push eax
call fcn.004aac60
add esp, 0x10
test eax, eax
je 0x413ccc
mov eax, dword [esp + 0x74]
mov ecx, eax
cmp eax, ebp
jne 0x413cb0
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0xa4]
cmp eax, ebp
jne 0x413cc2
lea eax, [esp + 0xa8]
push ecx
push eax
call fcn.00410d90
add esp, 8
mov byte [esp + 0x254], bl
lea ecx, [esp + 0xa4]
call fcn.00401210
mov byte [esp + 0x254], 5
lea ecx, [esp + 0x74]
call fcn.00401210
mov byte [esp + 0x254], 4
lea ecx, [esp + 0xbc]
call fcn.00401210
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x413dda
lea eax, [esp + 0x148]
push str..dll
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x413da4
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x413d3e
lea eax, [esp + 0x84]
push 0x40
lea ecx, [esp + 0x10c]
push ecx
push eax
call fcn.00410db0
add esp, 0xc
test eax, eax
je 0x413d9a
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x413d67
lea eax, [esp + 0x9c]
push 0x40
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.00410db0
add esp, 0xc
test eax, eax
je 0x413d9a
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x10c]
push ecx
call fcn.00621d5e
add esp, 8
test eax, eax
je 0x413da4
mov edx, dword [esp + 0x20]
mov dword [edx], 1
mov eax, dword [esp + 0x80]
mov ecx, eax
cmp eax, ebp
jne 0x413db8
lea ecx, [esp + 0x84]
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x413dca
lea eax, [esp + 0x9c]
push ecx
push eax
call fcn.00410d90
add esp, 8
jmp 0x413dda
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
call fcn.005e5c80
push ebx
call fcn.0062177c
add esp, 8
mov byte [esp + 0x254], 2
lea ecx, [esp + 0x98]
call fcn.00401210
mov byte [esp + 0x254], 1
lea ecx, [esp + 0x8c]
call fcn.00401210
mov byte [esp + 0x254], 0
lea ecx, [esp + 0x80]
call fcn.00401210
mov dword [esp + 0x254], 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.00401210
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.0062023e
add esp, 0x244
ret