Function at 0x4211e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b4d4
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4825c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xdc], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd8], 0
cmp byte [esi + 0x80], 0
mov dword [ebp - 0xec], eax
jne 0x4219e4
test eax, eax
je 0x4219e4
mov ecx, dword [esi + 0x7c]
mov edi, dword [ecx + 0x3c]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0x10]
cmp eax, dword [ecx + 0x54]
jbe 0x4219e4
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
call fcn.0043ec40
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
call fcn.0043ada0
mov eax, dword [esi + 0x7c]
add esp, 4
mov ecx, dword [edi + 8]
dec ecx
mov eax, dword [eax + 0x54]
add eax, dword [edi + 0xc]
and ecx, eax
mov eax, dword [edi + 4]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x40]
call fcn.004015b0
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 1
test eax, eax
je 0x42131d
lea edx, [eax - 1]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp eax, edx
jb 0x421a01
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x8c], 7
lea eax, [ebp - 0xa0]
cmova eax, dword [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x28]
lea eax, [eax + edx*2]
push eax
call fcn.00401510
mov eax, 0x21
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x28]
push 0x46f4e0
push eax
call fcn.00404100
add esp, 8
mov byte [ebp - 0xd1], 1
test al, al
jne 0x421324
mov byte [ebp - 0xd1], 0
mov eax, dword [ebp - 0xd8]
test al, 1
je 0x42133f
and eax, 0xfffffffe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xd8], eax
call fcn.00401940
cmp byte [ebp - 0xd1], 0
je 0x42195a
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.004015b0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.0043ada0
mov eax, dword [esi + 0x7c]
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [esi + 0x84], 0
cmp dword [eax + 0x124], 1
jne 0x4213ad
xor ecx, ecx
test edi, edi
je 0x4213ad
nop word [eax + eax]
cmp edx, 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
cmp word [eax + ecx*2], 0xa
jne 0x4213a8
add dword [esi + 0x84], 2
inc ecx
cmp ecx, edi
jb 0x421390
mov eax, dword [ebp - 0x30]
lea edx, [edi - 3]
mov dword [ebp - 0xa8], 0
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
movups xmmword [ebp - 0xb8], xmm0
cmp eax, edx
jb 0x421a06
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
add edx, edx
push ecx
add eax, edx
mov dword [ebp - 0xe0], edx
push eax
lea ecx, [ebp - 0xb8]
call fcn.00401510
mov eax, dword [ebp - 0xd8]
or eax, 8
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 3
cmp edi, 2
jbe 0x421492
mov ecx, dword [ebp - 0x30]
lea eax, [edi - 3]
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, eax
jb 0x421a0b
sub ecx, eax
mov edx, 0xffffffff
cmp ecx, 0xffffffff
lea eax, [ebp - 0x40]
cmovb edx, ecx
cmp dword [ebp - 0x2c], 7
push edx
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
add eax, dword [ebp - 0xe0]
push eax
call fcn.00401510
or dword [ebp - 0xd8], 0x12
lea eax, [ebp - 0x28]
push 0x46f4e4
push eax
call fcn.00404100
add esp, 8
mov byte [ebp - 0xd1], 1
test al, al
mov eax, dword [ebp - 0xd8]
jne 0x421499
mov byte [ebp - 0xd1], 0
test al, 2
je 0x4214a5
lea ecx, [ebp - 0x28]
call fcn.00401940
cmp byte [ebp - 0xd1], 0
je 0x4217a1
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0xb8]
sub eax, 0x9c88
je 0x421580
sub eax, 1
je 0x4214fd
mov ecx, esi
call fcn.0043ee40
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe4]
push eax
mov byte [ebp - 0xe0], 0
call fcn.00421d50
mov byte [esi + 0x80], 1
jmp 0x4217a1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004015b0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0043ee40
mov ecx, dword [esi + 0x14]
mov edi, eax
push 0x46e448
lea eax, [ebp - 0x28]
push eax
mov esi, dword [ecx + 4]
lea eax, [ebp - 0xd0]
push eax
call fcn.00401360
add esp, 0xc
push esi
mov esi, dword [ebp - 0xdc]
mov ecx, esi
push eax
push 0
push edi
mov byte [ebp - 4], 5
call fcn.00444420
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00401940
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0xe4], edi
mov byte [ebp - 0xe0], 1
call fcn.00421d50
lea ecx, [ebp - 0x28]
jmp 0x421798
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x74], 7
movups xmmword [ebp - 0x88], xmm0
mov edi, 1
mov word [ebp - 0x88], ax
mov esi, dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 6
test esi, esi
je 0x42167c
nop word [eax + eax]
cmp eax, 7
lea ecx, [ebp - 0x58]
lea eax, [edi + 1]
cmova ecx, dword [ebp - 0x58]
cmp word [ecx + edx*2], 0xa
cmovne eax, edi
inc edx
mov edi, eax
mov eax, dword [ebp - 0x44]
cmp edx, esi
jb 0x4215c0
cmp edi, 1
jle 0x421679
mov edi, dword [ebp - 0x58]
mov ecx, 1
mov edx, eax
cmp esi, ecx
jbe 0x42160b
cmp edx, 7
lea eax, [ebp - 0x58]
cmova eax, edi
cmp word [eax + ecx*2], 0xa
je 0x42160b
inc ecx
cmp ecx, esi
jb 0x4215f6
cmp esi, ecx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 0
cmovb ecx, esi
xorps xmm0, xmm0
cmp edx, 7
push ecx
cmova eax, edi
lea ecx, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.00401510
lea ecx, [ebp - 0x88]
call fcn.00401940
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x78], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00401940
jmp 0x421722
mov eax, dword [ebp - 0x44]
cmp eax, 7
lea ecx, [ebp - 0x58]
cmova ecx, dword [ebp - 0x58]
mov dword [ebp - 0xe0], ecx
cmp esi, 7
ja 0x4216b4
lea eax, [esi + esi]
mov dword [ebp - 0x78], esi
push eax
push ecx
lea eax, [ebp - 0x88]
push eax
call fcn.00449810
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2 - 0x88], ax
jmp 0x421722
cmp esi, 0x7ffffffe
ja 0x421a10
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4216d3
mov eax, 0x7ffffffe
jmp 0x4216dd
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004014b0
mov ecx, dword [ebp - 0xd8]
mov edi, eax
mov dword [ebp - 0x78], esi
add esi, esi
push esi
push dword [ebp - 0xe0]
mov dword [ebp - 0x74], ecx
push edi
call fcn.00449810
add esp, 0x14
mov dword [ebp - 0x88], edi
xor eax, eax
mov word [esi + edi], ax
mov esi, dword [ebp - 0xdc]
mov ecx, esi
call fcn.0043ee40
mov ecx, dword [ebp - 0xe8]
mov edi, eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe4], edi
push eax
mov byte [ebp - 0xe0], 0
call fcn.00421d50
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x88]
push 0x46e448
push eax
lea eax, [ebp - 0xd0]
mov esi, dword [ecx + 4]
push eax
call fcn.00401360
add esp, 0xc
push esi
mov esi, dword [ebp - 0xdc]
mov ecx, esi
push eax
push 0
push edi
mov byte [ebp - 4], 7
call fcn.00444420
lea ecx, [ebp - 0xd0]
call fcn.00401940
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00401940
mov eax, dword [esi + 0x7c]
inc dword [eax + 0x54]
mov eax, dword [esi + 0x7c]
push dword [eax + 0x11c]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004451e0
mov edi, dword [ebp - 0x60]
xor ecx, ecx
mov edx, dword [ebp - 0x5c]
add esp, 0xc
mov esi, dword [ebp - 0x70]
mov byte [ebp - 0xd1], 0
mov dword [ebp - 0xdc], ecx
test edi, edi
je 0x421866
cmp edx, 0xf
lea eax, [ebp - 0x70]
cmova eax, esi
cmp byte [eax + ecx], 0x22
jne 0x421801
cmp byte [ebp - 0xd1], 0
sete al
mov byte [ebp - 0xd1], al
jmp 0x421807
mov al, byte [ebp - 0xd1]
test al, al
jne 0x421857
cmp edx, 0xf
lea eax, [ebp - 0x70]
cmova eax, esi
cmp byte [eax + ecx], 0xa
jne 0x421857
lea eax, [ecx + 1]
cmp eax, edi
jae 0x421857
cmp edx, 0xf
lea ecx, [ebp - 0x70]
cmova ecx, esi
mov cl, byte [ecx + eax]
cmp cl, 9
je 0x421839
cmp cl, 0x20
jne 0x421851
jmp 0x42184c
cmp edx, 0xf
lea ecx, [ebp - 0x70]
cmova ecx, esi
mov byte [ecx + eax], 0x20
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x70]
inc eax
cmp eax, edi
jb 0x421821
mov ecx, dword [ebp - 0xdc]
inc ecx
mov dword [ebp - 0xdc], ecx
cmp ecx, edi
jb 0x4217e0
cmp edx, 0xf
lea edi, [ebp - 0x70]
cmova edi, esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421874
push 0
lea eax, [ebp - 0xe0]
sub ecx, edx
push eax
mov eax, dword [ebp - 0xec]
push ecx
push edi
push dword [eax + 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x4218ce
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4218c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a15
push ecx
push edx
call fcn.00448427
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ecx, 7
jbe 0x421920
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421916
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a15
push ecx
push edx
call fcn.00448427
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x42195a
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421950
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a15
push ecx
push edx
call fcn.00448427
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x421994
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42198a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a1a
push ecx
push edx
call fcn.00448427
add esp, 8
mov ecx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 7
jbe 0x4219e4
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4219da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a1a
push ecx
push edx
call fcn.00448427
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448686
mov esp, ebp
pop ebp
ret 4
call fcn.00401e60
call fcn.00401e60
call fcn.00401e60
call fcn.00401e50
call fcn.0044d0af
call fcn.0044d0af
int3