Function at 0x41debb
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42ccd1
call sub.MSVCRT.dll__EH_prolog
push ecx
sub esp, 0xe8
push ebx
push esi
push edi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
je 0x41def2
call fcn.004102c9
jmp 0x41def4
xor eax, eax
push 0x43f6d4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
mov dword [ebp - 0x1c], ebx
jne 0x41df15
push 0xcddc0005
call fcn.00429c16
mov eax, dword [ebp + 8]
mov esi, str.MAPd
lea edi, [ebp - 0x50]
cmp dword [eax], 0
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jne 0x41df31
push 0x80004003
call fcn.00429c16
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea eax, [ebp - 0x88]
push eax
call fcn.0041055f
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041045e
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x41df6b
push eax
call fcn.00429c16
and dword [ebp - 0x78], 0
push ebx
push 1
lea eax, [ebp - 0x50]
pop edi
push edi
push eax
call sub.MSVCRT.dll_strlen
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
pop ecx
push eax
lea eax, [ebp - 0x50]
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x41dfb4
push ebx
push edi
lea eax, [ebp - 0x54]
push 2
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x41dfb4
push ebx
push edi
lea eax, [ebp - 0x78]
push 4
push eax
call esi
add esp, 0x10
cmp eax, edi
je 0x41dfbe
push 0xcddc0009
call fcn.00429c16
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], eax
movsx ecx, word [ebp - 0x54]
cmp dword [ebp - 0x28], ecx
jge 0x41e3ed
push 3
lea ecx, [ebp - 0x88]
push dword [ebp - 0x28]
call fcn.004103a1
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [eax], 0
jne 0x41dfff
push 0x80004003
call fcn.00429c16
lea ecx, [ebp - 0x6c]
lea esi, [ebp - 0x88]
push ecx
mov eax, dword [ebp + 8]
sub esp, 0x10
mov edi, esp
mov ebx, dword [eax]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xa8]
test eax, eax
jge 0x41e030
push 0x430258
push ebx
push eax
call fcn.00429c24
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
call fcn.0041ef2b
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 5
call edi
test eax, eax
jge 0x41e05b
push eax
call fcn.00429c16
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push eax
call fcn.0041f034
cmp dword [ebp - 0x14], 0
mov byte [ebp - 4], 6
jne 0x41e07b
push 0x80004003
call fcn.00429c16
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.0041ee35
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0041f54f
push 0x23
pop esi
cmp eax, esi
ja 0x41e0a4
lea ecx, [ebp - 0x18]
call fcn.0041f54f
mov esi, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41e0b2
call fcn.004102c9
jmp 0x41e0b4
xor eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
call ebx
and byte [ebp + esi - 0xf8], 0
add esp, 0xc
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x14]
call fcn.0040db0a
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
jge 0x41e10e
lea ecx, [ebp - 0x18]
call fcn.00410254
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x41e100
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp eax, esi
jmp 0x41e3ce
and byte [ebp - 0xd4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041e51c
pop ecx
pop ecx
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.0041f06b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 9
call fcn.0041f0a2
xor eax, eax
cmp dword [ebp - 0x24], esi
mov byte [ebp - 4], 0xa
sete al
test al, al
je 0x41e167
lea eax, [ebp - 0xd4]
push 0x43f6e0
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 0x30], esi
setne al
test al, al
je 0x41e1e5
cmp dword [ebp - 0x30], esi
jne 0x41e182
push 0x80004003
call fcn.00429c16
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
call fcn.0041eee4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.0041f54f
push 0xe
pop esi
cmp eax, esi
ja 0x41e1ab
lea ecx, [ebp - 0x20]
call fcn.0041f54f
mov esi, eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x41e1b9
call fcn.004102c9
jmp 0x41e1bb
xor eax, eax
push esi
push eax
lea eax, [ebp - 0xd4]
push eax
call ebx
mov ecx, dword [ebp - 0x20]
and byte [ebp + esi - 0xd4], 0
add esp, 0xc
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x41e1e5
call fcn.0041029c
and dword [ebp - 0x20], 0
xor eax, eax
cmp dword [ebp - 0x38], eax
setne al
test al, al
je 0x41e2cd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0xa0]
push eax
call esi
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
push eax
call esi
cmp dword [ebp - 0x38], 0
mov byte [ebp - 4], 0xd
jne 0x41e225
push 0x80004003
call fcn.00429c16
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xa0]
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0x20]
mov esi, eax
test esi, esi
jge 0x41e258
push str.a:NJ
push ebx
push esi
call fcn.00429c24
test esi, esi
jge 0x41e258
push esi
call fcn.00429c16
lea ecx, [ebp - 0xbc]
call fcn.0041f597
fstp qword [ebp - 0x90]
lea ecx, [ebp - 0xa0]
call fcn.0041f597
fstp qword [ebp - 0xa8]
fld qword [ebp - 0x90]
push ecx
push ecx
lea eax, [ebp - 0xd4]
fstp qword [esp]
fld qword [ebp - 0xa8]
push ecx
push ecx
fstp qword [esp]
push eax
call fcn.0041e6a5
add esp, 0x14
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
push eax
call edi
test eax, eax
jge 0x41e2b6
push eax
call fcn.00429c16
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
push eax
call edi
test eax, eax
jge 0x41e2cd
push eax
call fcn.00429c16
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xc5]
push eax
push dword [ebp - 0x14]
call fcn.0040dc74
mov eax, dword [ebp - 0xc4]
add esp, 0xc
cmp eax, dword [ebp - 0x40]
jbe 0x41e2f7
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040fe19
cmp dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0xe
jne 0x41e317
push 0x80004003
call fcn.00429c16
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc0]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
jge 0x41e337
push 0x430228
push esi
push eax
call fcn.00429c24
push dword [ebp - 0x1c]
lea eax, [ebp - 0xf8]
push 1
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41e35d
push 0xcddc0009
call fcn.00429c16
mov eax, dword [ebp - 0x3c]
inc dword [ebp - 0x48]
test eax, eax
mov byte [ebp - 4], 0xa
je 0x41e371
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 9
test eax, eax
je 0x41e382
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 8
test eax, eax
je 0x41e393
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 7
test eax, eax
je 0x41e3a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41e3b4
call fcn.0041029c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
test eax, eax
je 0x41e3c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
test eax, eax
je 0x41e3d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push 1
pop edi
jmp 0x41dfcc
shr eax, 3
add eax, dword [ebp - 0x5c]
push 0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x66]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push dword [ebp + 8]
call fcn.0040fdfb
call fcn.0040f55f
add esp, 0x14
test eax, eax
jge 0x41e424
push eax
call fcn.00429c16
mov eax, dword [ebp - 0x44]
push ebx
mov dword [ebp - 0x74], eax
push edi
lea eax, [ebp - 0x74]
push 4
push eax
call esi
add esp, 0x10
push ebx
push dword [ebp - 0x44]
push 1
push dword [ebp - 0x58]
call esi
add esp, 0x10
mov edi, eax
push dword [ebp - 0x58]
call sub.MFC42.DLL_operatordelete
cmp edi, dword [ebp - 0x44]
pop ecx
je 0x41e45f
push 0xcddc0009
call fcn.00429c16
lea eax, [ebp - 0x50]
push 0
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41e49f
push ebx
push 1
pop edi
lea eax, [ebp - 0x48]
push edi
push 2
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x41e49f
push ebx
push edi
lea eax, [ebp - 0x70]
push 2
push eax
call esi
add esp, 0x10
cmp eax, edi
je 0x41e4a9
push 0xcddc0009
call fcn.00429c16
xor edi, edi
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
je 0x41e4bd
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp dword [ebp - 0x2c], edi
jl 0x41e4e8
mov esi, dword [ebp + 0xc]
push ecx
mov eax, esp
cmp esi, edi
mov dword [ebp + 8], esp
mov dword [eax], esi
je 0x41e4db
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0x64]
call fcn.0041e84c
mov dword [ebp - 0x2c], eax
jmp 0x41e4eb
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x41e4f6
mov ecx, esi
call fcn.0041029c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8