Function at 0x421620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4f8
push ebx
push ebp
push esi
push edi
push 0x4ddc2c
push ecx
call fcn.00489507
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x421666
push eax
push str.Error_opening_file_for_saving__is_it_in_use_
push str.System_message
push eax
call fcn.004422b0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [str.Extended_Module:]
mov al, byte [0x4df678]
mov ecx, 0x54ef63
mov byte [esp + 0x40], al
movups xmmword [esp + 0x30], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421683
movaps xmm0, xmmword [0x4e2cc0]
sub ecx, edx
mov eax, 0x14
mov dword [esp + 0x51], 0x20202020
cmp ecx, eax
movups xmmword [esp + 0x41], xmm0
cmovg ecx, eax
test ecx, ecx
jle 0x4216c1
push ecx
lea eax, [esp + 0x45]
push 0x54ef63
push eax
call fcn.00484790
add esp, 0xc
mov eax, dword [0x4df13c]
mov esi, 0x100
movups xmm0, xmmword [0x4df12c]
mov dword [esp + 0x66], eax
mov eax, 0x104
mov word [esp + 0x6a], ax
movzx eax, word [0x54fc1e]
mov word [esp + 0x70], ax
movzx eax, word [0x54fc20]
mov word [esp + 0x72], ax
movzx eax, word [0x54fc2c]
mov word [esp + 0x74], ax
movzx eax, word [0x54fc24]
mov word [esp + 0x7c], ax
movzx eax, word [0x54fc22]
mov byte [esp + 0x55], 0x1a
movups xmmword [esp + 0x56], xmm0
mov dword [esp + 0x6c], 0x114
mov word [esp + 0x7e], ax
nop
lea eax, [esi - 1]
movzx eax, ax
mov edx, dword [eax*4 + 0x54e940]
test edx, edx
je 0x421760
movsx eax, word [eax*2 + 0x54e740]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x421760
cmp byte [eax + edx], 0
jne 0x421766
inc eax
cmp eax, ecx
jb 0x421755
dec esi
test si, si
jg 0x421730
mov word [esp + 0x76], si
mov esi, 0x80
mov ecx, esi
call fcn.00432af0
test ax, ax
jne 0x421791
movsx eax, si
imul eax, eax, 0x17
cmp byte [eax + 0x54ef78], 0
jne 0x421791
dec esi
test si, si
jg 0x421770
movzx eax, byte [0x789f67]
lea edi, [esp + 0x80]
push ebp
mov word [esp + 0x7c], si
mov ebx, 0x40
mov word [esp + 0x7e], ax
mov ecx, ebx
push 1
lea eax, [esp + 0x38]
mov esi, 0x54fb16
push 0x150
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0048a33c
add esp, 0x10
cmp eax, 1
jne 0x421d8a
xor eax, eax
xor edi, edi
cmp ax, word [esp + 0x76]
jae 0x4218d3
movzx eax, di
mov edx, dword [eax*4 + 0x54e940]
test edx, edx
je 0x421811
movsx eax, word [eax*2 + 0x54e740]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x421811
cmp byte [eax + edx], 0
jne 0x42187e
inc eax
cmp eax, ecx
jb 0x421806
movsx esi, di
mov eax, dword [esi*4 + 0x54e940]
test eax, eax
je 0x421833
push eax
call fcn.00489083
add esp, 4
mov dword [esi*4 + 0x54e940], 0
mov word [esi*2 + 0x54e740], bx
movzx eax, word [esi*2 + 0x54e740]
mov edx, dword [esi*4 + 0x54e940]
mov dword [esp + 0x1c], 9
mov word [esp + 0x21], ax
mov byte [esp + 0x20], 0
test edx, edx
jne 0x421883
push ebp
xor eax, eax
push 1
mov word [esp + 0x2b], ax
lea eax, [esp + 0x24]
push 9
push eax
call fcn.0048a33c
add esp, 0x10
cmp eax, 1
jmp 0x4218bc
movsx esi, di
jmp 0x42183b
push eax
call fcn.00422820
push ebp
push 1
push dword [esp + 0x28]
mov word [esp + 0x33], ax
lea eax, [esp + 0x2c]
push eax
call fcn.0048a33c
movzx ecx, word [esp + 0x37]
mov esi, eax
push ebp
push 1
push ecx
push 0x50ced0
call fcn.0048a33c
add eax, esi
add esp, 0x24
cmp eax, 2
jne 0x421d8a
movzx eax, word [esp + 0x76]
inc edi
movsx ecx, di
cmp ecx, eax
jl 0x4217e4
push 0x387
lea eax, [esp + 0x184]
push 0
push eax
call fcn.00484630
mov edx, 1
add esp, 0xc
mov eax, edx
mov dword [esp + 0x2c], edx
cmp ax, word [esp + 0x78]
ja 0x421d2c
mov esi, eax
xor ecx, ecx
movzx eax, dx
cmp dword [esi*4 + 0x54ed40], ecx
cmovne ecx, eax
movzx edi, cx
mov ecx, edx
mov eax, edi
mov dword [esp + 0x18], eax
call fcn.00432af0
movzx ebx, ax
imul eax, esi, 0x17
mov dword [esp + 0x28], ebx
lea edx, [eax + 0x54ef78]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421936
sub ecx, esi
mov dword [esp + 0x194], 0
cmp ecx, 0x16
mov word [esp + 0x198], 0
mov eax, 0x16
xorps xmm0, xmm0
cmovg ecx, eax
movups xmmword [esp + 0x184], xmm0
test ecx, ecx
jle 0x421980
push ecx
push edx
lea eax, [esp + 0x18c]
push eax
call fcn.00484790
add esp, 0xc
mov byte [esp + 0x19a], 0
mov word [esp + 0x19b], bx
mov dword [esp + 0x19d], 0x28
test bx, bx
jle 0x421c00
movsx eax, di
lea esi, [esp + 0x28f]
movzx ebp, bx
mov ecx, dword [eax*4 + 0x54ed40]
movups xmm0, xmmword [ecx + 3]
lea edi, [ecx + 0x108]
movups xmmword [esp + 0x1a1], xmm0
movups xmm0, xmmword [ecx + 0x13]
movups xmmword [esp + 0x1b1], xmm0
movups xmm0, xmmword [ecx + 0x23]
movups xmmword [esp + 0x1c1], xmm0
movups xmm0, xmmword [ecx + 0x33]
movups xmmword [esp + 0x1d1], xmm0
movups xmm0, xmmword [ecx + 0x43]
movups xmmword [esp + 0x1e1], xmm0
movups xmm0, xmmword [ecx + 0x53]
movups xmmword [esp + 0x1f1], xmm0
movups xmm0, xmmword [ecx + 0x74]
movups xmmword [esp + 0x201], xmm0
movups xmm0, xmmword [ecx + 0x84]
movups xmmword [esp + 0x211], xmm0
movups xmm0, xmmword [ecx + 0x94]
movups xmmword [esp + 0x221], xmm0
movups xmm0, xmmword [ecx + 0xa4]
movups xmmword [esp + 0x231], xmm0
movups xmm0, xmmword [ecx + 0xb4]
movups xmmword [esp + 0x241], xmm0
movups xmm0, xmmword [ecx + 0xc4]
movups xmmword [esp + 0x251], xmm0
mov al, byte [ecx + 0x63]
mov byte [esp + 0x261], al
mov al, byte [ecx + 0x64]
mov byte [esp + 0x262], al
mov al, byte [ecx + 0x65]
mov byte [esp + 0x263], al
mov al, byte [ecx + 0x66]
mov byte [esp + 0x264], al
mov al, byte [ecx + 0x67]
mov byte [esp + 0x265], al
mov al, byte [ecx + 0x68]
mov byte [esp + 0x266], al
mov al, byte [ecx + 0x69]
mov byte [esp + 0x267], al
mov al, byte [ecx + 0x6a]
mov byte [esp + 0x268], al
mov al, byte [ecx + 0x6b]
mov byte [esp + 0x269], al
mov al, byte [ecx + 0x6c]
mov byte [esp + 0x26a], al
mov al, byte [ecx + 0x6d]
mov byte [esp + 0x26b], al
mov al, byte [ecx + 0x6e]
mov byte [esp + 0x26c], al
mov al, byte [ecx + 0x6f]
mov byte [esp + 0x26d], al
mov al, byte [ecx + 0x70]
mov byte [esp + 0x26e], al
movzx eax, word [ecx + 0x72]
mov word [esp + 0x26f], ax
cmp byte [ecx], 0
setne byte [esp + 0x271]
mov al, byte [ecx + 2]
mov byte [esp + 0x272], al
movzx eax, word [ecx + 0xd4]
mov word [esp + 0x273], ax
movzx eax, word [ecx + 0xd6]
mov word [esp + 0x275], ax
cmp byte [ecx + 1], 0
mov dword [esp + 0x180], 0x107
setne byte [esp + 0x277]
nop
mov al, byte [edi - 7]
mov ecx, dword [edi - 4]
mov dword [esi - 8], ecx
mov edx, dword [edi]
mov dword [esi - 4], edx
mov ebx, dword [edi + 4]
mov dword [esi], ebx
test al, 0x10
je 0x421b68
lea eax, [ecx + ecx]
mov dword [esi - 8], eax
lea eax, [edx + edx]
mov dword [esi - 4], eax
lea eax, [ebx + ebx]
mov dword [esi], eax
mov al, byte [edi - 8]
lea edx, [edi - 0x2c]
mov byte [esi + 4], al
mov al, byte [edi - 0x14]
mov byte [esi + 5], al
mov al, byte [edi - 7]
mov byte [esi + 6], al
mov al, byte [edi - 6]
mov byte [esi + 7], al
mov al, byte [edi - 0x13]
mov byte [esi + 8], al
mov eax, edx
lea ebx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421b90
movaps xmm0, xmmword [0x4e2cc0]
sub eax, ebx
cmp eax, 0x16
mov ecx, 0x16
cmovg eax, ecx
lea ecx, [esi + 0xa]
mov byte [esi + 9], al
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0x20202020
mov word [ecx + 0x14], 0x2020
test eax, eax
jle 0x421bd0
push eax
push edx
push ecx
call fcn.00484790
add esp, 0xc
cmp dword [edi - 0x10], 0
jne 0x421bdd
mov dword [esi - 8], 0
add edi, 0xd8
add esi, 0x28
sub ebp, 1
jne 0x421b40
mov ecx, dword [esp + 0x180]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
jmp 0x421c0c
mov ecx, 0x21
mov dword [esp + 0x180], ecx
movsx eax, bx
push ebp
push 1
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
lea eax, [esp + 0x18c]
push eax
call fcn.0048a33c
add esp, 0x10
cmp eax, 1
jne 0x421d8a
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ax, bx
jg 0x421d0f
mov eax, dword [esp + 0x18]
movsx edx, ax
mov dword [esp + 0x18], edx
nop dword [eax]
movsx eax, bp
imul edi, eax, 0xd8
mov eax, dword [edx*4 + 0x54ed40]
add edi, eax
cmp dword [edi + 0x20], 0
je 0x421d01
lea ecx, [edi + 4]
call fcn.00437a20
mov esi, dword [edi + 0x2c]
xor edx, edx
test byte [edi + 0x29], 0x10
mov ebx, dword [edi + 0x20]
je 0x421d62
xor ebp, ebp
test esi, esi
jle 0x421ca3
nop dword [eax]
movzx ecx, word [ebx + edx*2]
mov eax, ecx
sub eax, ebp
mov ebp, ecx
mov word [ebx + edx*2], ax
inc edx
cmp edx, esi
jl 0x421c90
mov ebp, dword [esp + 0x14]
movzx ecx, byte [edi + 0x29]
push dword [esp + 0x10]
mov eax, dword [edi + 0x2c]
shr ecx, 4
and ecx, 1
shl eax, cl
push eax
push 1
push dword [edi + 0x20]
call fcn.0048a33c
movzx ecx, byte [edi + 0x29]
mov esi, eax
mov edx, dword [edi + 0x2c]
push ecx
mov ecx, dword [edi + 0x20]
call fcn.00435270
add esp, 0x14
lea ecx, [edi + 4]
call fcn.00437390
movzx ecx, byte [edi + 0x29]
mov eax, dword [edi + 0x2c]
shr ecx, 4
and ecx, 1
shl eax, cl
cmp esi, eax
jne 0x421d86
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x14], ebp
cmp bp, bx
jle 0x421c50
mov edx, dword [esp + 0x2c]
movzx eax, word [esp + 0x78]
inc edx
mov ebp, dword [esp + 0x10]
movsx esi, dx
mov dword [esp + 0x2c], edx
cmp esi, eax
jle 0x421902
mov byte [0x54ef62], 0
push ebp
mov byte [0x54e4e2], 1
call fcn.00489248
mov byte [0x54e4e0], 1
add esp, 4
mov byte [0x54e620], 0
mov al, 1
mov byte [0x54e621], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ah, ah
test esi, esi
jle 0x421ca7
nop dword [eax]
mov cl, byte [edx + ebx]
mov al, cl
sub al, ah
mov ah, cl
mov byte [edx + ebx], al
inc edx
cmp edx, esi
jl 0x421d70
jmp 0x421ca7
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00489248
push 0
push str.Error_saving_module:_general_I_O_error_
push str.System_message
push 0
call fcn.004422b0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret