Function at 0x408810
Capabilities:
Get file system object information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4120a1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1b0ec
call fcn.00411350
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1b02c], 0
mov dword [ebp - 0x1b030], edi
movq qword [esi], xmm0
mov dword [ebp - 0x1b020], esi
mov dword [ebp - 0x1b024], esi
mov dword [ebp - 0x1acf0], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00404f10
mov dword [esi], eax
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
mov dword [ebp - 0x1b02c], 1
je 0x4088b6
cmp dword [edi + 0x28], 0
je 0x4088b6
cmp dword [edi + 0x2c], 0
jne 0x4088bd
mov dword [edi + 0x14], 0x80040102
push 0
push 0xffffffffffffffff
push str.silent
lea ecx, [ebp - 0x1b07c]
call fcn.0040e865
push eax
lea eax, [ebp - 0x1b080]
mov dword [ebp - 4], 1
lea ecx, [edi + 0x50]
push eax
call fcn.0040c730
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1b06c]
mov dword [ebp - 0x1b06c], eax
test ecx, ecx
je 0x408910
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x1b06c]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [ebp - 0x1b074]
xor eax, eax
add esp, 4
mov dword [ebp - 0x1b074], eax
test ecx, ecx
je 0x40893c
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x1b074]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp esi, dword [edi + 0x50]
je 0x40896d
lea eax, [ebp - 0x1ac54]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x4137ac
call fcn.0040e865
lea ecx, [esi + 0x28]
call fcn.0040fe56
mov eax, dword [ebp - 0x1ac54]
lea ecx, [ebp - 0x1b064]
push 0
push 0xffffffffffffffff
push str.parent
mov dword [edi + 0x40], eax
call fcn.0040e865
push eax
lea eax, [ebp - 0x1b084]
mov dword [ebp - 4], 2
push eax
lea ecx, [edi + 0x50]
call fcn.0040c730
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1b054]
mov dword [ebp - 0x1ace0], esi
mov dword [ebp - 0x1b054], eax
test ecx, ecx
je 0x4089cf
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x1b054]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [ebp - 0x1b05c]
xor eax, eax
add esp, 4
mov dword [ebp - 0x1b05c], eax
test ecx, ecx
je 0x4089fb
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x1b05c]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x1b010], ecx
mov dword [ebp - 0x1ad10], ecx
cmp esi, dword [edi + 0x50]
je 0x408a46
lea eax, [ebp - 0x1ad10]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x4139d8
call fcn.0040e865
lea ecx, [esi + 0x28]
call fcn.0040fe56
mov ecx, dword [ebp - 0x1ad10]
mov dword [ebp - 0x1b010], ecx
mov dword [ebp - 0x1b034], ecx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x409880
lea edx, [ebp - 0x1acfc]
mov dword [ebp - 0x1acfc], 0
mov eax, dword [ecx]
push edx
push 0
push ecx
call dword [eax + 0x10]
mov dword [edi + 0x14], eax
test eax, eax
js 0x409880
mov eax, dword [ebp - 0x1acfc]
push 0
push 0x413b04
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov dword [edi + 0x14], eax
test eax, eax
js 0x409870
mov eax, dword [ebp - 0x1acfc]
lea edx, [ebp - 0x1acf8]
push edx
push 0
mov dword [ebp - 0x1acf8], 0
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x4c]
mov ecx, dword [ebp - 0x1acf8]
mov dword [edi + 0x14], eax
test ecx, ecx
je 0x409870
cmp dword [ecx], 0
je 0x408af1
cmp eax, 0x40380
je 0x408af1
test eax, eax
js 0x408af1
mov eax, dword [ecx + 0xc]
movzx eax, word [eax + 8]
test eax, eax
jne 0x408af1
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00407510
jmp 0x408a99
test ecx, ecx
je 0x409870
cmp dword [ecx], 0
je 0x409870
mov eax, dword [ecx + 0xc]
mov ecx, dword [edi + 0x3c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1ace8], 0
mov edx, dword [ecx]
lea ecx, [ebp - 0x1ace8]
push ecx
mov ecx, dword [edi + 0x3c]
push 4
push 0
push eax
push esi
push dword [ebp - 0x1b010]
push ecx
call dword [edx + 0x14]
mov dword [edi + 0x14], eax
test eax, eax
js 0x40985d
push 0
push 0xffffffffffffffff
xorps xmm0, xmm0
lea ecx, [ebp - 0x1b0e4]
push str.totalAttachmentSize
movlpd qword [ebp - 0x1ac24], xmm0
call fcn.0040e865
push eax
lea eax, [ebp - 0x1b09c]
mov dword [ebp - 4], 3
push eax
lea ecx, [edi + 0x50]
call fcn.0040c730
lea ecx, [ebp - 0x1b0e4]
mov esi, dword [eax]
mov dword [ebp - 0x1ac44], esi
mov byte [ebp - 4], 0
call fcn.004037a0
cmp esi, dword [edi + 0x50]
je 0x408c51
lea eax, [ebp - 0x1ac24]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x4139d8
call fcn.0040e865
lea ecx, [esi + 0x28]
call fcn.0040fe56
mov eax, dword [ebp - 0x1ac24]
or eax, dword [ebp - 0x1ac20]
je 0x408c5c
mov eax, dword [ebp - 0x1ace8]
lea edx, [ebp - 0x1ad14]
push edx
lea edx, [ebp - 0x1ac40]
mov dword [ebp - 0x1ac40], 0
push edx
push 0
mov dword [ebp - 0x1ad14], 0
mov ecx, dword [eax]
push 0x413b30
push eax
call dword [ecx + 0x14]
mov edx, dword [ebp - 0x1ad14]
mov dword [edi + 0x14], eax
test edx, edx
je 0x408c3f
test eax, eax
jne 0x408c36
mov eax, dword [edx + 8]
shl eax, 0xa
xor ecx, ecx
ja 0x408c1d
test eax, eax
je 0x408c36
cmp dword [ebp - 0x1ac20], ecx
jb 0x408c36
ja 0x408c2f
cmp dword [ebp - 0x1ac24], eax
jb 0x408c36
mov dword [edi + 0x14], 0x8004666d
mov ecx, dword [edi + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [edi + 0x14], 0x8004010f
jne 0x408c5c
mov dword [edi + 0x14], 0
jmp 0x408c5c
xorps xmm0, xmm0
movlpd qword [ebp - 0x1ac24], xmm0
cmp dword [edi + 0x14], 0
jl 0x40984d
mov eax, dword [ebp - 0x1ace8]
lea edx, [ebp - 0x1ad1c]
push edx
lea edx, [ebp - 0x1ac50]
push edx
mov ecx, dword [eax]
push 0
push 0x413ad0
push eax
call dword [ecx + 0x14]
mov dword [edi + 0x14], eax
test eax, eax
js 0x40984d
cmp eax, 0x40380
je 0x40983f
cmp dword [ebp - 0x1ac50], 1
jne 0x40983f
mov eax, dword [ebp - 0x1ad1c]
mov esi, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1ace8]
mov dword [ebp - 0x1ad00], 0
mov dword [ebp - 0x1ac4c], 0
mov ecx, dword [eax]
lea eax, [ebp - 0x1ad00]
push eax
lea eax, [ebp - 0x1ac4c]
push eax
mov eax, dword [ebp - 0x1ace8]
push 0x10
push 0
push edx
push esi
push eax
call dword [ecx + 0x44]
mov dword [edi + 0x14], eax
test eax, eax
js 0x40983f
mov eax, dword [ebp - 0x1ad00]
lea edx, [ebp - 0x1ace4]
push edx
push 0
mov dword [ebp - 0x1ace4], 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
mov dword [edi + 0x14], eax
test eax, eax
js 0x40982f
mov ecx, dword [edi + 0x3c]
lea eax, [ebp - 0x1ad08]
push eax
xor eax, eax
mov dword [ebp - 0x1ad08], 0
cmp dword [edi + 0x40], eax
mov edx, dword [ecx]
setne al
push eax
push 0
push 0
push ecx
call dword [edx + 0x18]
mov dword [edi + 0x14], eax
test eax, eax
js 0x4096f6
sub esp, 8
lea esi, [edi + 0x50]
mov ecx, esp
push ecx
push esi
call fcn.0040c7c0
xor eax, eax
mov ecx, edi
cmp dword [edi + 0x40], eax
sete al
push eax
push dword [ebp - 0x1ace4]
push dword [ebp - 0x1ad08]
call fcn.0040a960
test eax, eax
je 0x4096ea
push 0
push 0xffffffffffffffff
mov dword [ebp - 0x1acec], 0
lea ecx, [ebp - 0x1b0b4]
push str.message
mov dword [ebp - 4], 4
call fcn.0040e865
push eax
lea eax, [ebp - 0x1b098]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0040c730
lea ecx, [ebp - 0x1b0b4]
mov esi, dword [eax]
mov byte [ebp - 4], 4
call fcn.004037a0
cmp esi, dword [edi + 0x50]
je 0x408f4d
xorps xmm0, xmm0
lea ecx, [ebp - 0x1ac94]
add esi, 0x28
movq qword [ebp - 0x1ac84], xmm0
push esi
movdqu xmmword [ebp - 0x1ac94], xmm0
call fcn.00403670
lea ecx, [ebp - 0x1ac94]
mov byte [ebp - 4], 6
call fcn.0040f679
cmp dword [ebp - 0x1ac90], 0
je 0x408f3e
xorps xmm0, xmm0
mov dword [ebp - 0x1ad38], 0
lea ecx, [ebp - 0x1ac94]
movq qword [ebp - 0x1ad40], xmm0
mov dword [ebp - 0x1ad44], 0x1000001f
call fcn.0040f679
mov dword [ebp - 0x1ad3c], eax
lea edx, [ebp - 0x1ad0c]
mov eax, dword [ebp - 0x1ace4]
push edx
lea edx, [ebp - 0x1ad44]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x20]
mov edx, dword [ebp - 0x1ad0c]
mov dword [edi + 0x14], eax
test eax, eax
js 0x408f31
test edx, edx
je 0x408f3e
xor ecx, ecx
cmp ecx, dword [edx]
jae 0x408f31
lea eax, [ecx + ecx*2]
cmp dword [edx + eax*4 + 0xc], 0x80040103
movq xmm0, qword [edx + eax*4 + 4]
movq qword [ebp - 0x1b090], xmm0
jne 0x409463
xorps xmm0, xmm0
mov dword [ebp - 0x1ad44], 0x1000001e
lea eax, [ebp - 0x1ac94]
movq qword [ebp - 0x1accc], xmm0
push eax
lea ecx, [ebp - 0x1acdc]
movdqu xmmword [ebp - 0x1acdc], xmm0
call fcn.004039b0
lea ecx, [ebp - 0x1acdc]
mov byte [ebp - 4], 7
call fcn.0040f6b2
cmp dword [ebp - 0x1acd8], 0
je 0x408f1c
lea ecx, [ebp - 0x1acdc]
call fcn.0040f6b2
mov dword [ebp - 0x1ad3c], eax
lea edx, [ebp - 0x1ad44]
mov eax, dword [ebp - 0x1ace4]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov dword [edi + 0x14], eax
lea ecx, [ebp - 0x1acdc]
mov byte [ebp - 4], 6
call fcn.004037a0
mov edx, dword [ebp - 0x1ad0c]
test edx, edx
je 0x408f3e
mov ecx, dword [edi + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1ac94]
mov byte [ebp - 4], 4
call fcn.004037a0
push 0
push 0xffffffffffffffff
push str.subject
lea ecx, [ebp - 0x1b0cc]
call fcn.0040e865
mov ecx, eax
push ecx
lea ecx, [ebp - 0x1b094]
mov byte [ebp - 4], 8
push ecx
lea ecx, [edi + 0x50]
call fcn.0040c730
lea ecx, [ebp - 0x1b0cc]
mov esi, dword [eax]
mov byte [ebp - 4], 4
call fcn.004037a0
cmp esi, dword [edi + 0x50]
je 0x4090fc
xorps xmm0, xmm0
lea ecx, [ebp - 0x1acac]
add esi, 0x28
movq qword [ebp - 0x1ac9c], xmm0
push esi
movdqu xmmword [ebp - 0x1acac], xmm0
call fcn.00403670
lea ecx, [ebp - 0x1acac]
mov byte [ebp - 4], 9
call fcn.0040f679
cmp dword [ebp - 0x1aca8], 0
je 0x4090f1
xorps xmm0, xmm0
mov dword [ebp - 0x1ad28], 0
lea ecx, [ebp - 0x1acac]
movq qword [ebp - 0x1ad30], xmm0
mov dword [ebp - 0x1ad34], 0x37001f
call fcn.0040f679
mov dword [ebp - 0x1ad2c], eax
lea edx, [ebp - 0x1ad04]
mov eax, dword [ebp - 0x1ace4]
push edx
lea edx, [ebp - 0x1ad34]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x20]
mov edx, dword [ebp - 0x1ad04]
mov dword [edi + 0x14], eax
test eax, eax
js 0x4090e4
test edx, edx
je 0x4090f1
xor ecx, ecx
cmp ecx, dword [edx]
jae 0x4090e4
lea eax, [ecx + ecx*2]
cmp dword [edx + eax*4 + 0xc], 0x80040103
movq xmm0, qword [edx + eax*4 + 4]
movq qword [ebp - 0x1b090], xmm0
jne 0x409469
xorps xmm0, xmm0
mov dword [ebp - 0x1ad34], 0x37001e
lea eax, [ebp - 0x1acac]
movq qword [ebp - 0x1acb4], xmm0
push eax
lea ecx, [ebp - 0x1acc4]
movdqu xmmword [ebp - 0x1acc4], xmm0
call fcn.004039b0
lea ecx, [ebp - 0x1acc4]
mov byte [ebp - 4], 0xa
call fcn.0040f6b2
cmp dword [ebp - 0x1acc0], 0
je 0x4090cf
lea ecx, [ebp - 0x1acc4]
call fcn.0040f6b2
mov dword [ebp - 0x1ad2c], eax
lea edx, [ebp - 0x1ad34]
mov eax, dword [ebp - 0x1ace4]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov dword [edi + 0x14], eax
lea ecx, [ebp - 0x1acc4]
mov byte [ebp - 4], 9
call fcn.004037a0
mov edx, dword [ebp - 0x1ad04]
test edx, edx
je 0x4090f1
mov ecx, dword [edi + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1acac]
call fcn.004037a0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1ac7c]
movdqu xmmword [ebp - 0x1ac7c], xmm0
movq qword [ebp - 0x1ac6c], xmm0
call fcn.00403640
push 0
push 0xffffffffffffffff
push str.attachment
lea ecx, [ebp - 0x1b0fc]
mov byte [ebp - 4], 0xb
call fcn.0040e865
mov ecx, eax
push ecx
lea ecx, [ebp - 0x1b028]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [edi + 0x50]
call fcn.0040c730
lea ecx, [ebp - 0x1b0fc]
mov esi, dword [eax]
mov dword [ebp - 0x1ac44], esi
mov byte [ebp - 4], 0xb
call fcn.004037a0
cmp esi, dword [edi + 0x50]
je 0x409175
add esi, 0x28
lea ecx, [ebp - 0x1ac7c]
push 0xffffffffffffffff
push esi
call fcn.0040eeba
lea ecx, [ebp - 0x1ac7c]
call fcn.0040f679
cmp dword [ebp - 0x1ac78], 0
je 0x40963b
lea ecx, [ebp - 0x1ac7c]
call fcn.0040f679
push eax
lea eax, [ebp - 0x1abe4]
push 0xcbe8
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [ebp - 0x1ad24]
push eax
lea eax, [ebp - 0x1abe4]
push 0x413a58
push eax
call dword [sym.imp.MSVCR120.dll_wcstok_s]
add esp, 0x18
mov dword [ebp - 0x1ac48], 0
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x1b014], esi
cmp ecx, 0xc8
jge 0x40963b
test esi, esi
je 0x40963b
mov dword [ebp - 0x1acf4], ecx
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x40920b
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
test al, al
je 0x40961f
mov eax, dword [ebp - 0x1ace4]
lea edx, [ebp - 0x1acf4]
push edx
lea edx, [ebp - 0x1ac48]
push edx
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x40]
mov dword [edi + 0x14], eax
test eax, eax
js 0x40961f
push 0x30
lea eax, [ebp - 0x1ac14]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x100
lea eax, [ebp - 0x414]
mov dword [ebp - 0x1ac14], 0x37050003
push eax
push 0x100
lea eax, [ebp - 0x214]
mov dword [ebp - 0x1ac0c], 1
push eax
push 0
push 0
push 0
push 0
push esi
mov dword [ebp - 0x1abfc], 0
mov dword [ebp - 0x1abec], 0
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x214]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x1ac04], 0x3704001f
push 0x2b0
mov dword [ebp - 0x1abfc], eax
lea eax, [ebp - 0x1b004]
push 0
push eax
mov dword [ebp - 0x1b008], 0
call sub.MSVCR120.dll_memset
add esp, 0x48
lea eax, [ebp - 0x1b008]
push 0x200
push 0x2b4
push eax
push 0xd0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x409319
lea eax, [ebp - 0x1affc]
mov dword [ebp - 0x1abf4], 0x3001001f
mov dword [ebp - 0x1abec], eax
mov eax, dword [ebp - 0x1acf4]
lea edx, [ebp - 0x1acf0]
push edx
lea edx, [ebp - 0x1ac14]
push edx
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x20]
mov dword [edi + 0x14], eax
test eax, eax
js 0x4094c0
cmp dword [ebp - 0x1acf0], 0
je 0x4094d3
xor ecx, ecx
nop
mov edx, dword [ebp - 0x1acf0]
cmp ecx, dword [edx]
jae 0x4094ba
lea eax, [ecx + ecx*2]
cmp dword [edx + eax*4 + 0xc], 0x80040103
movq xmm0, qword [edx + eax*4 + 4]
movq qword [ebp - 0x1b090], xmm0
jne 0x40952f
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x1b01c], eax
xor esi, esi
mov dword [ebp - 0x1b018], eax
mov eax, dword [ebp - 0x1abfc]
mov dword [ebp - 0x1b00c], ecx
test eax, eax
je 0x4093f3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push esi
mov dword [ebp - 0x1ac04], 0x3704001e
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x4093f3
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp - 0x1b01c], eax
push 0
push 0
push esi
push eax
push esi
push dword [ebp - 0x1abfc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov eax, dword [ebp - 0x1b01c]
mov dword [ebp - 0x1abfc], eax
mov eax, dword [ebp - 0x1abec]
test eax, eax
je 0x40946f
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [ebp - 0x1abf4], 0x3001001e
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1b018], eax
test eax, eax
je 0x409475
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x1b018]
mov dword [ebp - 0x1b00c], ecx
push 0
push 0
push eax
push ecx
push eax
push dword [ebp - 0x1abec]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x1b00c]
mov dword [ebp - 0x1abec], ecx
jmp 0x409475
inc ecx
jmp 0x408e83
inc ecx
jmp 0x409036
mov eax, dword [ebp - 0x1b018]
test esi, esi
je 0x409494
test eax, eax
je 0x409494
mov eax, dword [ebp - 0x1acf4]
lea edx, [ebp - 0x1ac14]
push 0
push edx
push 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x1b01c]
mov esi, dword [sym.imp.MSVCR120.dll_free]
test eax, eax
je 0x4094aa
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x1b00c]
test eax, eax
je 0x4094ba
push eax
call esi
add esp, 4
mov esi, dword [ebp - 0x1b014]
mov edx, dword [ebp - 0x1acf0]
test edx, edx
je 0x4094d3
mov ecx, dword [edi + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x1acf4]
lea edx, [ebp - 0x1acec]
push edx
push 3
push 1
mov ecx, dword [eax]
push 0x413540
push 0x37010102
push eax
call dword [ecx + 0x1c]
mov dword [edi + 0x14], eax
test eax, eax
js 0x409605
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1b00c], eax
cmp eax, 0xffffffff
jne 0x409535
mov dword [edi + 0x14], 0x80044005
jmp 0x4095e1
inc ecx
jmp 0x409350
mov dword [ebp - 0x1ac1c], 0
mov dword [ebp - 0x1ad18], 0
lea esp, [esp]
push 0
lea ecx, [ebp - 0x1ac1c]
push ecx
push 0x1000
lea ecx, [ebp - 0x1414]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4095d5
cmp dword [ebp - 0x1ac1c], 0
je 0x4095d5
lea esi, [ebp - 0x1414]
nop
mov eax, dword [ebp - 0x1acec]
lea edx, [ebp - 0x1ad18]
push edx
push dword [ebp - 0x1ac1c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebp - 0x1ad18]
mov edx, 0x80044005
test ecx, ecx
cmove eax, edx
mov dword [edi + 0x14], eax
test eax, eax
jl 0x4095c5
mov eax, dword [ebp - 0x1ac1c]
add esi, ecx
sub eax, ecx
mov dword [ebp - 0x1ac1c], eax
test eax, eax
jne 0x409580
cmp dword [edi + 0x14], 0
mov eax, dword [ebp - 0x1b00c]
jge 0x409550
push dword [ebp - 0x1b00c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1acec]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x1acec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x1acec], 0
mov eax, dword [ebp - 0x1acf4]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x1acf4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x1ad24]
push eax
push 0x413a58
push 0
call dword [sym.imp.MSVCR120.dll_wcstok_s]
add esp, 0xc
jmp 0x4091d1
mov eax, dword [ebp - 0x1ace4]
lea edx, [ebp - 0x1ad54]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1ad48], 0
movq qword [ebp - 0x1ad50], xmm0
push edx
mov dword [ebp - 0x1ad54], 0x1a001e
mov dword [ebp - 0x1ad4c], str.IPM.Note
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x20]
lea ecx, [ebp - 0x1ac7c]
mov dword [edi + 0x14], eax
call fcn.004037a0
mov dword [ebp - 4], 0
jmp 0x4096bd
cmp dword [ebp - 0x1acec], 0
je 0x4096e0
mov eax, dword [ebp - 0x1acec]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x1acec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x1acf0], 1
mov eax, dword [ebp - 0x1ad08]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [edi + 0x14], 0
jl 0x40982f
cmp dword [edi + 0x40], 0
jne 0x409781
push 4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, dword [edi + 0x3c]
add esp, 4
mov esi, eax
mov edx, dword [ecx]
push esi
push dword [ebp - 0x1ace4]
push 0
push ecx
call dword [edx + 0x54]
mov dword [edi + 0x14], eax
test eax, eax
js 0x409772
mov ecx, dword [ebp - 0x1ace4]
test ecx, ecx
je 0x40973c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi + 0x3c]
push str.IPM.Note
push 1
push 8
mov ecx, dword [eax]
push 0
push 2
push 0
push dword [esi]
push 0
push dword [ebp - 0x1ad00]
push dword [ebp - 0x1ace8]
push dword [ebp - 0x1b010]
push eax
call dword [ecx + 0x50]
mov dword [edi + 0x14], eax
jmp 0x40982f
mov dword [ebp - 0x1acf0], 0
jmp 0x40982f
mov eax, dword [ebp - 0x1ace8]
lea edx, [ebp - 0x1ad20]
push edx
lea edx, [ebp - 0x1ac18]
push edx
mov ecx, dword [eax]
push 0
push 0x413b18
push eax
call dword [ecx + 0x14]
mov dword [edi + 0x14], eax
test eax, eax
js 0x409815
cmp eax, 0x40380
je 0x409807
cmp dword [ebp - 0x1ac18], 1
jne 0x409807
mov ecx, dword [ebp - 0x1ad20]
lea edx, [ebp - 0x1ac64]
mov dword [ebp - 0x1ac58], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1ac60], xmm0
mov dword [ebp - 0x1ac64], 0xe0a0102
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1ac5c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1ac58], eax
mov eax, dword [ebp - 0x1ace4]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov ecx, dword [edi + 0x1c]
push dword [ebp - 0x1ad20]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x1ace4]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x1ace4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1ad00]
test ecx, ecx
je 0x40983f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi + 0x1c]
push dword [ebp - 0x1ad1c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x1ace8]
test ecx, ecx
je 0x40985d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x1acf8]
test eax, eax
je 0x409870
mov ecx, dword [edi + 0x1c]
push eax
call fcn.00407510
mov ecx, dword [ebp - 0x1acfc]
test ecx, ecx
je 0x409880
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1ac3c], xmm0
mov dword [ebp - 0x1ac3c], 0
movq qword [ebp - 0x1ac2c], xmm0
mov dword [ebp - 0x1ac38], 0
mov dword [ebp - 0x1ac34], 0
mov dword [ebp - 0x1ac30], 0
mov dword [ebp - 0x1ac2c], 0
mov dword [ebp - 0x1ac28], 0
mov dword [ebp - 4], 0xe
push dword [ebp - 0x1acf0]
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x4137ac
call fcn.0040e865
lea eax, [ebp - 0x1ac3c]
push eax
call fcn.0040fe15
add esp, 0x20
lea ecx, [ebp - 0x1b04c]
push 0
push 0xffffffffffffffff
push str.result
call fcn.0040e865
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x1b020]
push eax
call fcn.00404920
push 0xffffffffffffffff
lea ecx, [ebp - 0x1ac3c]
push ecx
mov ecx, eax
call fcn.0040eeba
mov ecx, dword [ebp - 0x1b03c]
xor eax, eax
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov dword [ebp - 0x1b03c], eax
test ecx, ecx
je 0x409956
push ecx
call esi
mov eax, dword [ebp - 0x1b03c]
add esp, 4
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push eax
call edi
mov ecx, dword [ebp - 0x1b044]
xor eax, eax
add esp, 4
mov dword [ebp - 0x1b044], eax
test ecx, ecx
je 0x409980
push ecx
call esi
mov eax, dword [ebp - 0x1b044]
add esp, 4
push eax
call edi
mov ecx, dword [ebp - 0x1ac2c]
xor eax, eax
add esp, 4
mov dword [ebp - 0x1ac2c], eax
test ecx, ecx
je 0x4099a4
push ecx
call esi
mov eax, dword [ebp - 0x1ac2c]
add esp, 4
push eax
call edi
mov ecx, dword [ebp - 0x1ac34]
xor eax, eax
add esp, 4
mov dword [ebp - 0x1ac34], eax
test ecx, ecx
je 0x4099c8
push ecx
call esi
mov eax, dword [ebp - 0x1ac34]
add esp, 4
push eax
call edi
mov eax, dword [ebp - 0x1b020]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410663
mov esp, ebp
pop ebp
ret 4