Function at 0x41c5a0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424f84
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esi + 0x8ec], 0
mov al, byte [0x42d514]
test al, al
je 0x41c5d8
xor eax, eax
jmp 0x41d2ff
mov ebp, dword [esp + 0x258]
mov eax, dword [ebp]
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x44], eax
mov byte [esp + 0x23], 0
xor edi, edi
mov bl, 0xd
cmp edi, 0x2800
jge 0x41d2fa
mov al, byte [esi + 0xc]
test al, al
jne 0x41d2fa
mov al, byte [0x42d514]
test al, al
jne 0x41d2fa
lea ecx, [esp + 0x23]
push 1
push ecx
mov ecx, dword [esi + 4]
call fcn.00422650
test eax, eax
jle 0x41d2fa
mov dl, byte [esp + 0x23]
mov byte [edi + esi + 0x10914], dl
inc edi
cmp edi, 4
jl 0x41c5f9
cmp byte [edi + esi + 0x10910], bl
jne 0x41c5f9
cmp byte [edi + esi + 0x10911], 0xa
jne 0x41c5f9
cmp byte [edi + esi + 0x10912], bl
jne 0x41c5f9
cmp byte [edi + esi + 0x10913], 0xa
jne 0x41c5f9
cmp edi, 0xffffffff
mov byte [edi + esi + 0x10914], 0
je 0x41d2fa
lea ebx, [esi + 0x10914]
push str..360
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x41d2fa
mov ecx, dword [ebp]
mov dword [esp + 0x2c], eax
add ecx, edi
mov dword [esp + 0x38], eax
mov dword [ebp], ecx
mov al, byte [0x42d521]
test al, al
mov dword [esp + 0x18], ebx
je 0x41c72a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x14584]
lea edx, [esp + 0x14]
mov dword [esp + 0x248], 0
mov ecx, dword [eax + 0x1c]
push ecx
push str..debugin__d.dat
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
push eax
call fcn.00401400
mov ecx, dword [esp + 0x24]
push 0x42b7cc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x18
mov dword [esp + 0x2c], eax
test eax, eax
je 0x41c716
push eax
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x10914]
mov ecx, esi
push eax
call fcn.0041c3b0
mov ebp, dword [esp + 0x254]
mov ebx, dword [esp + 0x250]
mov ecx, esi
mov edx, dword [ebp]
mov eax, dword [ebx]
push edx
push eax
lea eax, [esi + 0x10914]
push eax
call fcn.00418d90
push ebp
push ebx
push edi
mov edi, dword [esp + 0x24]
push edi
mov ecx, esi
call fcn.0041bec0
lea eax, [esp + 0x60]
push str._r_nHost:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp]
mov eax, dword [ebx]
push ecx
push eax
push 0x42d1a8
push 0x42d1a8
lea edx, [esp + 0x78]
push 0x42c534
push edx
push edi
call fcn.0041b890
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x910]
add esp, 0x24
test eax, eax
jne 0x41c7e6
lea eax, [esp + 0x60]
push str._r_nReferer:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp]
mov eax, dword [ebx]
push ecx
push eax
push 0x42d1a8
push 0x42bf20
lea edx, [esp + 0x78]
push 0x42bf30
mov eax, edi
push edx
push eax
call fcn.0041b890
add esp, 0x24
mov dword [esp + 0x3c], eax
lea eax, [esi + 0x10914]
mov ecx, esi
push eax
call fcn.0041c3b0
lea eax, [esi + 0x4e]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov dword [esp + 0x248], 1
call sub.MFC42.DLL_CString::MakeLower
push str.nbpreregist.
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x41c870
mov ecx, dword [ebp]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.00419030
test eax, eax
jne 0x41c870
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41c855
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41d2ff
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x50]
xor eax, eax
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
push eax
lea eax, [esp + 0x54]
push eax
push str.Content_Length:
push edi
call fcn.00411440
mov dword [esp + 0x54], eax
lea eax, [esi + 0x8fc]
lea ecx, [esi + 0x8f4]
push eax
push 2
push ecx
push 0x42cbe0
push edi
mov dword [eax], 0
mov dword [ecx], 0
mov dword [esi + 0x8f8], 0
call fcn.00411440
mov edx, dword [esp + 0x40]
mov dword [esi + 0x8f8], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x168]
push 0xff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x16c]
push ecx
push str.If_Modified_Since
push edx
call fcn.004116b0
add esp, 0x38
lea edi, [esi + 0x900]
lea eax, [esp + 0x140]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov eax, dword [esi + 0x1457c]
test eax, eax
je 0x41c948
mov eax, dword [ebx]
mov ecx, dword [esi + 0x8e0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41c948
mov ecx, dword [ebp]
mov eax, dword [esi + 0x8e4]
cmp ecx, eax
je 0x41c960
mov edx, dword [ebp]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.0041d910
mov eax, dword [esi + 0x1457c]
test eax, eax
je 0x41d2c0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, 0x2800
mov dword [esp + 0x24], edx
sub eax, edx
mov ebx, ecx
cmp ecx, eax
jle 0x41c991
mov ebx, eax
sub ecx, ebx
mov dword [esp + 0x40], ecx
jmp 0x41c999
mov dword [esp + 0x40], 0
test ebx, ebx
jle 0x41ca08
mov al, byte [esi + 0xc]
test al, al
jne 0x41ca08
mov al, byte [0x42d514]
test al, al
jne 0x41ca08
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push ebx
lea ebp, [ecx + eax]
mov ecx, dword [esi + 4]
push ebp
call fcn.00422650
mov edi, eax
cmp edi, 0xffffffff
je 0x41ca8f
test edi, edi
je 0x41ca8f
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41c9eb
push eax
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [esp + 0x258]
mov edx, dword [esp + 0x24]
sub ebx, edi
add edx, edi
mov ebp, dword [eax]
mov dword [esp + 0x24], edx
add ebp, edi
test ebx, ebx
mov dword [eax], ebp
jg 0x41c99d
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov ebx, 0x100
mov byte [edx + esi + 0x10914], 0
mov eax, dword [esi + 0x8fc]
mov ecx, dword [esi + 0x8f4]
mov edi, dword [esi + 0x8f8]
test al, 3
mov ebp, ecx
je 0x41cae2
mov ecx, dword [esi + 0x14584]
lea eax, [esi + 0x4e]
push eax
lea eax, [esi + 0xd]
mov edx, dword [ecx + 0x3c]
push eax
push edx
call fcn.00401260
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x41cac7
mov edx, dword [esi + 0x14584]
lea ecx, [eax + 0x41]
push ecx
push eax
mov eax, dword [edx + 0x40]
push eax
call fcn.00401340
add esp, 0xc
test eax, eax
je 0x41cabf
mov ebx, dword [eax + 0x154]
cmp ebx, 0x100
jge 0x41cac7
mov ebx, 0x400
jmp 0x41cac7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41caa1
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 3
jmp 0x41d2ff
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x8f4]
test ecx, ecx
jne 0x41cae2
mov eax, edi
xor edx, edx
div ebx
test edx, edx
je 0x41cae2
lea eax, [edi + edi]
mov edi, eax
sub edi, edx
cmp ebp, ecx
jne 0x41caee
cmp edi, dword [esi + 0x8f8]
je 0x41cb4b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x80]
push 0x42cbe0
push ecx
call ebx
push edi
push ebp
lea edx, [esp + 0xd0]
push str._u__u
push edx
call ebx
mov edx, dword [esp + 0x3c]
push 0
lea eax, [esp + 0xdc]
push 3
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xa4]
push 0x42c534
push ecx
push edx
push eax
call fcn.004110d0
add esp, 0x34
mov dword [esp + 0x24], eax
mov byte [eax + esi + 0x10914], 0
push str.index.htm
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x8d0]
push 0x42d1a8
mov ecx, ebx
mov byte [esp + 0x24c], 2
call sub.MFC42.DLL_CString::operator_2
lea ebp, [esi + 0x4e]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x41cd42
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x3f
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 3
call sub.MFC42.DLL_CString::Find_2
xor edi, edi
cmp eax, edi
jl 0x41cbe0
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 3
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, edi
jge 0x41cbfe
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, edi
jl 0x41cc31
inc eax
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x24c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 3
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, edi
jl 0x41cc90
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
cmp dword [esi + 0x910], edi
je 0x41cd31
mov edx, dword [ebx]
cmp dword [edx - 8], edi
jle 0x41cd2b
push ebx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x34]
mov byte [esp + 0x248], 7
call sub.MFC42.DLL_CString::MakeLower
push str..swf.flv.wmv.asf.mp3.wma.doc.ppt.pdf
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x24c], 8
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x41cd01
mov ecx, dword [esp + 0x18]
push str.User_Agent:_Mozilla
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x41cd07
mov dword [esi + 0x910], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x248], 3
call sub.MFC42.DLL_CString::CString
jmp 0x41cd31
mov dword [esi + 0x910], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x900]
mov eax, dword [edx - 8]
cmp eax, 5
jle 0x41cfe1
mov eax, dword [ebx]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x42d1a8
push eax
call edi
add esp, 8
test eax, eax
je 0x41cdb5
mov eax, dword [esi + 0x14584]
push 0x42d1a8
add eax, 0x38
mov eax, dword [eax]
push eax
call edi
add esp, 8
test eax, eax
je 0x41cdb5
mov ecx, dword [esi + 0x14584]
push 0x42cb74
add ecx, 0x38
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x41cdb5
mov ebx, dword [ebx]
mov ecx, dword [esi + 0x14584]
push ebx
add ecx, 0x38
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x41cfe1
push 0x42d1a8
lea ecx, [esp + 0x14]
xor bl, bl
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x14]
mov byte [esp + 0x248], 9
test eax, eax
jne 0x41cf3f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x42bb14
push ebp
mov byte [esp + 0x250], 0xa
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x41ce13
sub eax, esi
sub eax, 0x4e
cmp eax, 0xa
jge 0x41ce13
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
jmp 0x41ce46
mov al, byte [ebp]
cmp al, 0x2f
je 0x41ce2f
cmp al, 0x5c
je 0x41ce2f
lea eax, [esi + 0xd]
push ebp
push eax
lea ecx, [esp + 0x1c]
push str.http:___s__s
push ecx
jmp 0x41ce3e
lea edx, [esi + 0xd]
push ebp
push edx
lea eax, [esp + 0x1c]
push str.http:___s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoA]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
push ecx
push 0
push edx
call ebp
test eax, eax
jne 0x41cead
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41cead
mov eax, dword [esp + 0x34]
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
push ecx
push edi
push edx
call ebp
test eax, eax
je 0x41ce9e
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
push edi
call sub.MFC42.DLL_operatordelete
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 4
mov ecx, dword [esp + 0x10]
push 0x42d1a8
push ecx
call edi
add esp, 8
test eax, eax
je 0x41cf26
mov edx, dword [esp + 0x10]
push 0x42b0a8
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x41cf26
push edi
push 0xb
lea eax, [esp + 0x5c]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0xb
jne 0x41cf1c
lea edx, [esp + 0x54]
mov ecx, str.CODD
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x41cf1c
mov bl, 1
xor ecx, ecx
mov al, byte [esp + ecx + 0x58]
cmp al, 0xff
je 0x41cf12
cmp al, 0xaa
jne 0x41cf1a
inc ecx
cmp ecx, 7
jl 0x41cf06
jmp 0x41cf1c
xor bl, bl
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 9
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41cfd0
lea ecx, [esp + 0x10]
mov byte [esi + 0x8ec], 1
push ecx
lea ecx, [esi + 0x8f0]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x13118]
mov eax, dword [edx - 8]
mov edx, eax
sub edx, ecx
test edx, edx
jle 0x41cfd0
mov dl, byte [0x42d514]
test dl, dl
jne 0x41cfd0
sub eax, ecx
add eax, 0x20
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esi + 0x13118]
add esp, 4
add eax, 4
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [eax]
push edx
push 0x42cb50
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x14584]
push 2
push edi
push 0x401
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x8d4]
lea eax, [esi + 0x4e]
push 0x42bb14
push eax
mov ebx, dword [edx - 8]
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x41d092
mov ecx, ebx
lea edx, [esi + 0x4e]
sub ecx, esi
mov edi, edx
lea ebp, [ecx + eax - 0x4b]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
cmp ebp, ecx
jae 0x41d092
mov eax, dword [esp + 0x18]
cmp byte [eax + ebp], 0x2f
je 0x41d040
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
cmp ebp, ecx
jb 0x41d021
jmp 0x41d092
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov eax, 0x24242424
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x8d4]
mov eax, ebp
push edx
sub eax, ebx
push 0x42b080
lea edi, [eax + ecx]
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x24]
sub ebx, ebp
add esp, 0xc
mov dword [esp + 0x18], edi
mov byte [eax + ebp], 0x2f
mov eax, dword [esp + 0x24]
add eax, ebx
mov dword [esp + 0x24], eax
mov al, byte [0x42d521]
test al, al
je 0x41d111
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x14584]
lea eax, [esp + 0x10]
mov byte [esp + 0x248], 0xb
mov edx, dword [ecx + 0x1c]
push edx
push str..debugout__d.dat
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00401400
mov edx, dword [esp + 0x20]
push 0x42b7cc
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x18
mov dword [esp + 0x38], eax
test eax, eax
je 0x41d100
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
push edx
push eax
call fcn.004225e0
cmp eax, 0xffffffff
jne 0x41d17b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41d13a
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41d14c
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x248], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 4
jmp 0x41d2ff
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test ebp, ebp
jbe 0x41d231
mov al, byte [esi + 0xc]
test al, al
jne 0x41d231
mov al, byte [0x42d514]
test al, al
jne 0x41d231
cmp ebp, 0x2800
mov eax, 0x2800
ja 0x41d1b2
mov eax, ebp
mov ecx, dword [esi + 4]
lea ebx, [esi + 0x10914]
push eax
push ebx
call fcn.00422650
mov edi, eax
cmp edi, 0xffffffff
je 0x41d294
test edi, edi
je 0x41d294
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41d1ed
mov ecx, eax
push ecx
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [esp + 0x258]
push edi
push ebx
sub ebp, edi
mov ecx, dword [eax]
add ecx, edi
mov dword [eax], ecx
mov ecx, dword [esi + 8]
call fcn.004225e0
mov edi, eax
cmp edi, 0xffffffff
je 0x41d14c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41d229
mov edx, eax
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test ebp, ebp
ja 0x41d18b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41d243
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41d255
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x258]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [eax]
mov ecx, eax
sub ecx, ebx
push ecx
push edx
push eax
mov eax, dword [esi + 0x14584]
mov ecx, dword [eax + 0xc]
push ecx
push 0
call fcn.00412a50
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x248], 1
call sub.MFC42.DLL_CString::CString
jmp 0x41d2d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x248], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 3
jmp 0x41d2ff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41d2d9
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x41d2d9
cmp edi, 0xffffffff
jne 0x41d326
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
mov dword [esp + 0x248], 0xffffffff
lea ecx, [esp + 0x28]
je 0x41d31a
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x23c
ret 0xc
call sub.MFC42.DLL_CString::CString
mov eax, 0x65
jmp 0x41d2ff
lea ecx, [esp + 0x28]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x66
jmp 0x41d2ff