Function at 0x47da70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484ef7
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x334
push ebx
push esi
push edi
mov eax, dword [0x4b6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0x14c], 0xffffffff
jne 0x47db78
mov ecx, dword [ebp - 0x254]
add ecx, 0x120
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
cmp dword [edx + 0x18], 0x10
jb 0x47db08
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x258], ecx
jmp 0x47db17
mov edx, dword [ebp - 0xd4]
add edx, 4
mov dword [ebp - 0x258], edx
push 0
push 0
mov eax, dword [ebp - 0x254]
movzx ecx, byte [eax + 0x13e]
push ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x1d0]
push eax
mov ecx, dword [ebp - 0x254]
movzx edx, word [ecx + 0x13c]
push edx
mov eax, dword [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.0047afa0
movzx ecx, al
test ecx, ecx
jne 0x47db78
mov dword [ebp - 0x44], 0x6a
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
push 0x4aec94
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 4], 0
push 0x37
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jne 0x47dbbf
mov dword [ebp - 0x50], 0x198
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
push 0x4aec94
lea ecx, [ebp - 0x4c]
push ecx
call sub.MSVCR90.dll__CxxThrowException
push 0xff
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x47dc02
mov dword [ebp - 0x5c], 0x198
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
push 0x4aec94
lea edx, [ebp - 0x58]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
jmp 0x47dc1b
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x19c
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x1c
idiv ecx
cmp dword [ebp - 0x34], eax
jae 0x47dd88
mov edx, dword [ebp - 0x254]
add edx, 0x19c
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
cmp dword [ebp - 0x34], eax
jb 0x47dc89
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor edx, edx
jne 0x47dc89
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0xdc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe0]
cmp dword [edx + 0x18], 0x10
jb 0x47dcbf
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x264], ecx
jmp 0x47dcce
mov edx, dword [ebp - 0xe0]
add edx, 4
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x264]
push eax
push 0xff
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
push 0x4a97f0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47dd1d
mov dword [ebp - 0x64], 0x194
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
push 0x4aec94
lea ecx, [ebp - 0x60]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x47dd52
mov eax, dword [ebp - 0x24]
push eax
push 0x36
push 1
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x47dd24
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
shr eax, 0xa
cmp eax, 0x1400
jbe 0x47dd83
mov dword [ebp - 0x6c], 0x195
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x68], ecx
push 0x4aec94
lea edx, [ebp - 0x68]
push edx
call sub.MSVCR90.dll__CxxThrowException
jmp 0x47dc12
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xe4], 0
jne 0x47ddbb
mov dword [ebp - 0x74], 0xc9
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x70], edx
push 0x4aec94
lea eax, [ebp - 0x70]
push eax
call sub.MSVCR90.dll__CxxThrowException
push 9
call fcn.004768f0
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp - 0xe8]
cmp dword [edx + 0x18], 0x10
jb 0x47ddf4
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x268], ecx
jmp 0x47de03
mov edx, dword [ebp - 0xe8]
add edx, 4
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x268]
push eax
push str.MAIL_FROM:__s__r_n
push 0x2800
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x144]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.00479eb0
mov edx, dword [ebp - 0x254]
add edx, 0x154
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xec]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x38
idiv ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47de98
mov dword [ebp - 0x7c], 0xcb
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x78], edx
push 0x4aec94
lea eax, [ebp - 0x78]
push eax
call sub.MSVCR90.dll__CxxThrowException
push 0xa
call fcn.004768f0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0
jmp 0x47deb7
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x254]
add edx, 0x154
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf0]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x38
idiv ecx
cmp dword [ebp - 0x1c], eax
jae 0x47df8c
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x254]
add ecx, 0x154
call fcn.00401f10
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
add eax, 0x1c
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
cmp dword [ecx + 0x18], 0x10
jb 0x47df33
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 4]
mov dword [ebp - 0x270], eax
jmp 0x47df42
mov ecx, dword [ebp - 0x154]
add ecx, 4
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
push edx
push str.RCPT_TO:__s__r_n
push 0x2800
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.00479eb0
jmp 0x47deae
mov dword [ebp - 0x1c], 0
jmp 0x47df9e
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x254]
add edx, 0x16c
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x158]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x38
idiv ecx
cmp dword [ebp - 0x1c], eax
jae 0x47e073
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x254]
add ecx, 0x16c
call fcn.00401f10
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
add eax, 0x1c
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
cmp dword [ecx + 0x18], 0x10
jb 0x47e01a
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x278], eax
jmp 0x47e029
mov ecx, dword [ebp - 0x1bc]
add ecx, 4
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x278]
push edx
push str.RCPT_TO:__s__r_n
push 0x2800
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.00479eb0
jmp 0x47df95
mov dword [ebp - 0x1c], 0
jmp 0x47e085
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x254]
add edx, 0x184
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1c0]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x38
idiv ecx
cmp dword [ebp - 0x1c], eax
jae 0x47e15a
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x254]
add ecx, 0x184
call fcn.00401f10
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
add eax, 0x1c
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
cmp dword [ecx + 0x18], 0x10
jb 0x47e101
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 4]
mov dword [ebp - 0x280], eax
jmp 0x47e110
mov ecx, dword [ebp - 0x228]
add ecx, 4
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x280]
push edx
push str.RCPT_TO:__s__r_n
push 0x2800
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.00479eb0
jmp 0x47e07c
push 0xb
call fcn.004768f0
add esp, 4
mov dword [ebp - 0x3c], eax
push str.DATA_r_n
push 0x2800
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x144]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.00479eb0
push 0xc
call fcn.004768f0
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.004780f0
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov ecx, dword [ebp - 0x254]
call fcn.00476640
test eax, eax
je 0x47e259
mov dword [ebp - 0x1c], 0
jmp 0x47e1fa
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x254]
call fcn.00476640
cmp dword [ebp - 0x1c], eax
jae 0x47e257
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x254]
call fcn.0047a2f0
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x284]
push ecx
push str._s_r_n
push 0x2800
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
jmp 0x47e1f1
jmp 0x47e28d
push 0x4aa3fc
push str._s_r_n
push 0x2800
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
jmp 0x47e2a6
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x254]
add eax, 0x19c
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
cmp dword [ebp - 0x34], eax
jae 0x47eb94
mov edx, dword [ebp - 0x254]
add edx, 0x19c
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x230]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
cmp dword [ebp - 0x34], eax
jb 0x47e311
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor edx, edx
jne 0x47e311
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x230]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x234]
cmp dword [edx + 0x18], 0x10
jb 0x47e347
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x288], ecx
jmp 0x47e356
mov edx, dword [ebp - 0x234]
add edx, 4
mov dword [ebp - 0x288], edx
mov eax, dword [ebp - 0x288]
push eax
push 0xff
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
push str.__MESSAGE__ID__54yg6f6h6y456345
push str.___s_r_n
push 0x2800
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x144]
add edx, 0xffffffff
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x28c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x28d], cl
add dword [ebp - 0x28c], 1
cmp byte [ebp - 0x28d], 0
jne 0x47e3a9
mov edi, dword [ebp - 0x28c]
mov ecx, 0xb
mov esi, str.Content_Type:_application_x_msdownload__name_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x254]
add edx, 0x19c
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x238]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
cmp dword [ebp - 0x34], eax
jb 0x47e414
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor edx, edx
jne 0x47e414
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x238]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x23c], eax
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push 0x4aa438
mov ecx, dword [ebp - 0x23c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], ecx
mov edx, dword [ebp - 0x298]
mov al, byte [edx]
mov byte [ebp - 0x29d], al
add dword [ebp - 0x298], 1
cmp byte [ebp - 0x29d], 0
jne 0x47e46c
mov ecx, dword [ebp - 0x298]
sub ecx, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a8], ecx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
add ecx, 0xffffffff
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2ac]
mov al, byte [edx + 1]
mov byte [ebp - 0x2ad], al
add dword [ebp - 0x2ac], 1
cmp byte [ebp - 0x2ad], 0
jne 0x47e4bd
mov edi, dword [ebp - 0x2ac]
mov esi, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x2a8]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
add ecx, 0xffffffff
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x2b4]
mov al, byte [edx + 1]
mov byte [ebp - 0x2b5], al
add dword [ebp - 0x2b4], 1
cmp byte [ebp - 0x2b5], 0
jne 0x47e511
mov edi, dword [ebp - 0x2b4]
mov ecx, dword [0x4aa43c]
mov dword [edi], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
add eax, 0xffffffff
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2bd], dl
add dword [ebp - 0x2bc], 1
cmp byte [ebp - 0x2bd], 0
jne 0x47e553
mov edi, dword [ebp - 0x2bc]
mov ecx, 9
mov esi, str.Content_Transfer_Encoding:_base64_r_n
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
add ecx, 0xffffffff
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
mov al, byte [edx + 1]
mov byte [ebp - 0x2c5], al
add dword [ebp - 0x2c4], 1
cmp byte [ebp - 0x2c5], 0
jne 0x47e599
mov edi, dword [ebp - 0x2c4]
mov ecx, 0xb
mov esi, str.Content_Disposition:_attachment__filename_
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x254]
add ecx, 0x19c
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x240]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x1c
idiv ecx
cmp dword [ebp - 0x34], eax
jb 0x47e603
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor edx, edx
jne 0x47e603
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x240]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x244], eax
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push 0x4aa438
mov ecx, dword [ebp - 0x244]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], ecx
mov edx, dword [ebp - 0x2d0]
mov al, byte [edx]
mov byte [ebp - 0x2d5], al
add dword [ebp - 0x2d0], 1
cmp byte [ebp - 0x2d5], 0
jne 0x47e65b
mov ecx, dword [ebp - 0x2d0]
sub ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 0x2e0], ecx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
add ecx, 0xffffffff
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
mov al, byte [edx + 1]
mov byte [ebp - 0x2e5], al
add dword [ebp - 0x2e4], 1
cmp byte [ebp - 0x2e5], 0
jne 0x47e6ac
mov edi, dword [ebp - 0x2e4]
mov esi, dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2e0]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x144]
add ecx, 0xffffffff
mov dword [ebp - 0x2ec], ecx
mov edx, dword [ebp - 0x2ec]
mov al, byte [edx + 1]
mov byte [ebp - 0x2ed], al
add dword [ebp - 0x2ec], 1
cmp byte [ebp - 0x2ed], 0
jne 0x47e700
mov edi, dword [ebp - 0x2ec]
mov ecx, dword [0x4aa43c]
mov dword [edi], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
add eax, 0xffffffff
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2f5], dl
add dword [ebp - 0x2f4], 1
cmp byte [ebp - 0x2f5], 0
jne 0x47e742
mov edi, dword [ebp - 0x2f4]
mov ax, word [0x4aa490]
mov word [edi], ax
mov cl, byte [0x4aa492]
mov byte [edi + 2], cl
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
push 0x4a97f0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47e7c4
mov dword [ebp - 0x84], 0x194
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x80], ecx
push 0x4aec94
lea edx, [ebp - 0x80]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x47e7f9
mov ecx, dword [ebp - 0x24]
push ecx
push 0x36
push 1
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x47e7cb
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
shr ecx, 0xa
cmp ecx, 0x1400
jbe 0x47e83c
mov dword [ebp - 0x8c], 0x195
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x88], edx
push 0x4aec94
lea eax, [ebp - 0x88]
push eax
call sub.MSVCR90.dll__CxxThrowException
jmp 0x47eb82
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x47e866
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, 0x36
div ecx
add eax, 1
cmp dword [ebp - 0x1c], eax
jae 0x47eb6d
mov edx, dword [ebp - 0x24]
push edx
push 0x36
push 1
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], 0
je 0x47e9dc
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0047ecb0
add esp, 0xc
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xd0]
or edx, 1
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0x248]
cmp dword [eax + 0x18], 0x10
jb 0x47e8f9
mov ecx, dword [ebp - 0x248]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x300], edx
jmp 0x47e908
mov eax, dword [ebp - 0x248]
add eax, 4
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x308], edx
mov eax, dword [ebp - 0x304]
mov cl, byte [eax]
mov byte [ebp - 0x309], cl
add dword [ebp - 0x304], 1
cmp byte [ebp - 0x309], 0
jne 0x47e920
mov edx, dword [ebp - 0x304]
sub edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x314], edx
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x144]
add edx, 0xffffffff
mov dword [ebp - 0x318], edx
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x318]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x31d], dl
add dword [ebp - 0x318], 1
cmp byte [ebp - 0x31d], 0
jne 0x47e980
mov edi, dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x324], eax
mov esi, dword [ebp - 0x310]
mov edx, dword [ebp - 0x314]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x328], eax
jmp 0x47eaad
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.0047ecb0
add esp, 0xc
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0xd0]
or ecx, 2
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0x24c]
cmp dword [edx + 0x18], 0x10
jb 0x47ea25
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x32c], ecx
jmp 0x47ea34
mov edx, dword [ebp - 0x24c]
add edx, 4
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x144]
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x330]
mov dl, byte [ecx]
mov byte [ebp - 0x339], dl
mov eax, dword [ebp - 0x334]
mov cl, byte [ebp - 0x339]
mov byte [eax], cl
mov edx, dword [ebp - 0x330]
add edx, 1
mov dword [ebp - 0x330], edx
mov eax, dword [ebp - 0x334]
add eax, 1
mov dword [ebp - 0x334], eax
cmp byte [ebp - 0x339], 0
jne 0x47ea5e
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0xd0]
and edx, 2
je 0x47eacb
and dword [ebp - 0xd0], 0xfffffffd
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd0]
and eax, 1
je 0x47eaf0
and dword [ebp - 0xd0], 0xfffffffe
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x144]
add edx, 0xffffffff
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x340]
mov cl, byte [eax + 1]
mov byte [ebp - 0x341], cl
add dword [ebp - 0x340], 1
cmp byte [ebp - 0x341], 0
jne 0x47eb05
mov edi, dword [ebp - 0x340]
mov dx, word [0x4aa490]
mov word [edi], dx
mov al, byte [0x4aa492]
mov byte [edi + 2], al
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 2]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1400
jb 0x47eb68
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
jmp 0x47e85d
cmp dword [ebp - 0x20], 0
je 0x47eb82
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
jmp 0x47e29d
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
push edx
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov edx, dword [ebp - 0x254]
add edx, 0x19c
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x250]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
test eax, eax
je 0x47ec28
push str.__MESSAGE__ID__54yg6f6h6y456345
push str._r_n___s___r_n
push 0x2800
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
push 0xd
call fcn.004768f0
add esp, 4
mov dword [ebp - 0x3c], eax
push str._r_n._r_n
push 0x2800
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.004776a0
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.00479eb0
jmp 0x47ec96
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret