Function at 0x42b9b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x437888]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
mov dword [esp + 0x30], eax
mov eax, dword [0x43b668]
push ebx
push ebp
mov ebp, dword [esp + 0x454]
mov ebx, dword [eax + 0xdc]
mov eax, 0x7a120
cmp ebx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x450]
cmova ebx, eax
mov eax, edx
or eax, ebp
push esi
mov esi, dword [0x43a174]
push edi
je 0x42c25a
cmp ebx, 2
jb 0x42c25a
mov eax, dword [0x43b668]
mov ecx, dword [eax + 0x27c]
mov eax, dword [0x43b668]
cmp dword [eax + 0x278], ecx
jae 0x42c25a
mov eax, dword [0x43b668]
push ebp
push edx
push 0
mov ecx, dword [eax + 0x27c]
mov eax, dword [0x43b668]
sub ecx, dword [eax + 0x278]
push ecx
mov dword [esp + 0x40], ecx
call fcn.0042b6b0
push 0
push 0x3e8
push edx
push eax
call fcn.0042d950
xor ebp, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edx
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x18], ebp
test ebx, ebx
je 0x42baba
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + ebp*8 + 4]
mov eax, dword [esi + ebp*8]
cmp edx, dword [esp + 0x14]
ja 0x42bab6
jb 0x42ba99
cmp eax, dword [esp + 0x34]
ja 0x42bab6
cmp edx, edi
ja 0x42baaa
jb 0x42baa3
cmp eax, ecx
jae 0x42baaa
mov dword [esi + ebp*8], ecx
mov dword [esi + ebp*8 + 4], edi
mov ecx, dword [esi + ebp*8]
mov edi, dword [esi + ebp*8 + 4]
inc ebp
cmp ebp, ebx
jne 0x42ba84
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x30]
xor edx, edx
imul edi, ebp, 0x3e8
mov ecx, ebx
shr ecx, 1
mov eax, edi
div ebx
xor edx, edx
mov dword [esp + 0x24], eax
imul eax, ebx
sub edi, eax
imul eax, edi, 0x3e8
add eax, ecx
div ebx
mov dword [esp + 0x44], eax
cmp eax, 0x1f4
jb 0x42bb01
mov ecx, dword [0x43b668]
mov edx, dword [esp + 0x24]
inc edx
mov dword [ecx + 0x26c], edx
jmp 0x42bb10
mov eax, dword [0x43b668]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x26c], ecx
mov ecx, dword [0x43b668]
mov eax, 0x10624dd3
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, dword [esp + 0x2c]
mul dword [ecx + 0x26c]
mov eax, dword [0x43b668]
shr edx, 6
mov dword [eax + 0x260], edx
mov eax, dword [0x43b668]
mov dword [eax + 0x264], 0
mov eax, dword [0x43b668]
mov ecx, dword [eax + 0x254]
mov eax, dword [0x43b668]
mov dword [eax + 0x25c], ecx
mov eax, dword [0x43b668]
test byte [eax + 0xd0], 1
je 0x42bcd6
movzx ecx, word [edi + 0xe]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
movzx eax, word [edi + 0xc]
push eax
movzx eax, word [edi + 0xa]
push eax
movzx eax, word [edi + 8]
push eax
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x268]
push 0x43a190
push 0x43305c
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x30
lea eax, [esp + 0x248]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x42bcd0
push 0x433090
lea eax, [esp + 0x4c]
push 0x1ff
push eax
call fcn.0041d632
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
lea ecx, [esp + 0x54]
push ecx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, 0x10624dd3
xor edi, edi
mul dword [esp + 0x30]
xor ecx, ecx
mov eax, edx
shr eax, 6
mov dword [esp + 0x38], eax
test eax, eax
je 0x42bcc5
lea ebx, [ebx]
push dword [esp + 0x45c]
xor ebx, ebx
inc ecx
push dword [esp + 0x45c]
mov dword [esp + 0x3c], ecx
push ebx
push ecx
call fcn.0042b6b0
cmp dword [esi + edi*8 + 4], edx
ja 0x42bc83
jb 0x42bc70
cmp dword [esi + edi*8], eax
jae 0x42bc83
lea esp, [esp]
inc edi
inc ebx
cmp edi, ebp
je 0x42bc83
cmp dword [esi + edi*8 + 4], edx
jb 0x42bc70
ja 0x42bc83
cmp dword [esi + edi*8], eax
jb 0x42bc70
push ebx
push 0x433098
lea eax, [esp + 0x50]
push 0x1ff
push eax
call fcn.0041d632
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
add esp, 0x10
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
cmp edi, ebp
je 0x42bcc5
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x38]
jb 0x42bc40
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
mov eax, dword [0x43b668]
test byte [eax + 0xd0], 4
je 0x42be5b
movzx ecx, word [edi + 0xe]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
movzx eax, word [edi + 0xc]
push eax
movzx eax, word [edi + 0xa]
push eax
movzx eax, word [edi + 8]
push eax
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x268]
push 0x43a190
push 0x4330a0
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x30
lea eax, [esp + 0x248]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x42be5b
push 0x4330d8
lea eax, [esp + 0x4c]
push 0x1ff
push eax
call fcn.0041d632
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
xor edi, edi
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x42be54
push 0
push 0x3e8
push dword [esi + edi*8 + 4]
push dword [esi + edi*8]
call fcn.0042b6b0
push dword [esp + 0x45c]
mov edi, edx
mov ebx, eax
push dword [esp + 0x45c]
push edi
push ebx
call fcn.0042d950
push dword [esp + 0x45c]
mov ebp, eax
push dword [esp + 0x45c]
push 0
push ebp
call fcn.0042b6b0
sub ebx, eax
push 0
push 0x3e8
sbb edi, edx
push edi
push ebx
call fcn.0042b6b0
push dword [esp + 0x45c]
push dword [esp + 0x45c]
push edx
push eax
call fcn.0042d950
mov edi, dword [esp + 0x20]
push eax
push ebp
inc edi
lea eax, [esp + 0x50]
push edi
push 0x4330ec
push 0x1ff
push eax
mov dword [esp + 0x38], edi
call fcn.0041d632
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
add esp, 0x18
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebp, dword [esp + 0x18]
cmp edi, ebp
jne 0x42bda2
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esp + 0x30], 0x3e8
ja 0x42be74
mov eax, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x28], eax
jmp 0x42bfc3
mov ecx, dword [esi + ebp*8 - 4]
mov edx, 0xf423f
mov eax, dword [esi + ebp*8 - 8]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], 0
cmp ecx, dword [esp + 0x45c]
ja 0x42bebc
jb 0x42bea5
cmp eax, dword [esp + 0x458]
ja 0x42bebc
xorps xmm0, xmm0
mov dword [esp + 0x14], 1
mov dword [esp + 0x34], ebx
movlpd qword [esp + 0x38], xmm0
jmp 0x42beed
sub eax, dword [esp + 0x458]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
sbb ecx, dword [esp + 0x45c]
mov dword [esp + 0x34], ecx
movlpd qword [esp + 0x38], xmm0
test ecx, ecx
jb 0x42bfc1
ja 0x42beed
test eax, eax
je 0x42bfc1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
lea ecx, [ecx]
cmp dword [esi + edi*8 + 4], eax
ja 0x42bf22
jb 0x42bf10
cmp dword [esi + edi*8], ecx
jae 0x42bf22
lea ecx, [ecx]
inc edi
cmp edi, ebp
jae 0x42bf22
cmp dword [esi + edi*8 + 4], eax
jb 0x42bf10
ja 0x42bf22
cmp dword [esi + edi*8], ecx
jb 0x42bf10
mov eax, ecx
mov ecx, dword [esp + 0x20]
add eax, dword [esp + 0x458]
adc ecx, dword [esp + 0x45c]
cmp dword [esi + ebx*8 + 4], ecx
ja 0x42bf55
jb 0x42bf43
cmp dword [esi + ebx*8], eax
jae 0x42bf55
inc ebx
cmp ebx, ebp
jae 0x42bfbb
cmp dword [esi + ebx*8 + 4], ecx
jb 0x42bf43
ja 0x42bf55
cmp dword [esi + ebx*8], eax
jb 0x42bf43
cmp ebx, ebp
jae 0x42bfbb
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, edi
push 0
cmp eax, edx
push 0x3e8
push dword [esp + 0x464]
cmovb edx, eax
cmp eax, ecx
push dword [esp + 0x464]
cmova ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ecx
call fcn.0042d950
mov ecx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
adc eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x34]
jb 0x42bf00
ja 0x42bfbb
cmp ecx, dword [esp + 0x14]
jb 0x42bf00
mov ebx, dword [esp + 0x18]
jmp 0x42bfc3
mov ebx, edx
mov ecx, dword [0x43b668]
test byte [ecx + 0xd0], 2
je 0x42c0c4
mov esi, dword [esp + 0x2c]
mov eax, 0x66666667
movzx ecx, word [esi + 0xe]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
movzx eax, word [esi + 0xc]
push eax
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x268]
push 0x43a190
push 0x4330fc
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x30
lea eax, [esp + 0x248]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c0c4
push 0x433134
lea eax, [esp + 0x4c]
push 0x1ff
push eax
call fcn.0041d632
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
lea ecx, [esp + 0x28]
add esp, 0xc
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push esi
call edi
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
push dword [esp + 0x28]
push dword [esp + 0x30]
push ebx
push dword [esp + 0x40]
push ebp
push 0x433158
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x24
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push esi
call edi
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x43a290
push 0x433174
lea eax, [esp + 0x250]
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x10
lea eax, [esp + 0x248]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c185
push 2
push 0
push 0
push esi
call edi
push dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x30]
movzx eax, word [edx + 0xc]
push dword [esp + 0x40]
push ebp
push dword [esp + 0x58]
push eax
movzx eax, word [edx + 0xa]
push eax
movzx eax, word [edx + 8]
push eax
movzx eax, word [edx + 6]
push eax
movzx eax, word [edx + 2]
push eax
movzx eax, word [edx]
push eax
push 0x433188
lea eax, [esp + 0x80]
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x40
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x43a290
push 0x43a190
call fcn.0041d556
add esp, 8
test eax, eax
je 0x42c25a
push 0x43a190
push 0x433174
lea eax, [esp + 0x250]
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x10
lea eax, [esp + 0x248]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c25a
push 2
push 0
push 0
push esi
call edi
push dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x30]
movzx eax, word [ecx + 0xc]
push dword [esp + 0x40]
push ebp
push dword [esp + 0x58]
push eax
movzx eax, word [ecx + 0xa]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 6]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x433188
lea eax, [esp + 0x80]
push 0x1ff
push eax
call fcn.0041d632
add esp, 0x40
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d486
add esp, 0x440
ret 0xc