Function at 0x424fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + reloc.NETAPI32.dll_NetApiBufferFree], 0
je 0x424ff8
lea esi, [eax + 0x20]
push 4
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 2
call fcn.004252d0
push 4
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], 4
call fcn.004252d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], eax
call fcn.004252d0
mov eax, dword [edi + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425000
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, dword [edi + 0x1c]
lea edx, [eax + 2]
jmp 0x425020
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425020
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425040
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
add eax, esi
mov esi, dword [ebp + 8]
add eax, ebx
push 4
lea ecx, [ebp + 0xc]
lea eax, [eax + eax + 0x2c]
add esi, 0x20
push ecx
mov dword [ebp + 0xc], eax
call fcn.004252d0
push 8
push edi
call fcn.004252d0
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
push 8
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.004252d0
mov edx, dword [edi + 0x10]
push 4
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], edx
call fcn.004252d0
push 4
lea ecx, [edi + 0x20]
push ecx
call fcn.004252d0
mov edx, dword [edi + 0x14]
push 4
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], edx
call fcn.004252d0
mov ecx, dword [edi + 0x28]
push 4
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], ecx
call fcn.004252d0
mov eax, dword [edi + 0x18]
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x4250f1
lea edx, [eax + 2]
jmp 0x4250e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4250e0
sub eax, edx
sar eax, 1
mov ebx, eax
push 4
lea ecx, [ebp + 0xc]
lea eax, [ebx + ebx]
push ecx
mov dword [ebp + 0xc], eax
call fcn.004252d0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push edx
push eax
call fcn.004252d0
mov eax, dword [ebp - 0xc]
mov ebx, dword [edi + 0x1c]
test eax, eax
jne 0x42512f
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425120
sub eax, edx
sar eax, 1
push 4
lea edx, [ebp + 0xc]
lea ecx, [eax + eax]
push edx
mov dword [ebp + 0xc], ecx
call fcn.004252d0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.004252d0
mov eax, dword [ebp - 0x10]
mov edi, dword [edi + 0x2c]
pop ebx
test eax, eax
jne 0x42516f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425160
sub eax, edx
sar eax, 1
push 4
lea edx, [ebp + 0xc]
lea ecx, [eax + eax]
push edx
mov dword [ebp + 0xc], ecx
call fcn.004252d0
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004252d0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + reloc.NETAPI32.dll_NetApiBufferFree]
mov esi, dword [esi]
mov ecx, dword [ecx + 8]
push 0
lea edx, [ebp + 8]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x4251c2
push 0x4aa2d0
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 1
call sub.MSVCR100.dll__CxxThrowException
mov esp, ebp
pop ebp
ret 8