Function at 0x421e20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aaad
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x469070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
sete al
test al, al
je 0x421ee6
push 0x800
call fcn.00429fed
mov esi, eax
add esp, 4
test esi, esi
je 0x422272
push 0
push 0x45cf74
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [edi + 8]
add esp, 0xc
test ecx, ecx
je 0x421ea0
push esi
push 0x65
call fcn.00424760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x10], 0
je 0x421ec0
push esi
call fcn.00429fe8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi + 0xc]
call fcn.00429fe8
add esp, 4
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], 0x65
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x48]
mov esi, 0x10
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp eax, dword [ecx + 4]
je 0x421f0f
mov ecx, dword [ecx + 4]
nop dword [eax + eax]
add esi, 5
add esi, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ecx
jne 0x421f00
mov ecx, dword [edi + 0x48]
cmp dword [ecx + 0x88], esi
je 0x421f39
push 0
push str.Internal_error__header_length_has_been_modified___cannot_fixup_headers_
push 0x64
lea ecx, [edi + 8]
call fcn.004247b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x421f7b
xor ecx, ecx
call fcn.00427470
mov esi, eax
mov dword [ebp - 0x18], esi
push esi
push str.CSinkFileIO::Cant_set_end_of_file___s_
push 2
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call fcn.004247b0
push 2
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00429fda
add esp, 8
push 0
push 0
mov ecx, edi
call fcn.00423c10
push 0x3c
call fcn.00429f84
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, 0x10
mov edx, dword [edi + 0x48]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp ecx, dword [edx + 4]
je 0x421fcb
mov eax, dword [edx + 4]
mov esi, 0x10
add esi, 5
add esi, dword [ecx + 0xc]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x421fb6
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
sub esp, 0xc
mov dword [esi], 0x460014
mov ecx, esi
push eax
call fcn.004233b0
mov dword [ebp - 4], 0xffffffff
cmp byte [esi + 0x2d], 0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
je 0x421ff7
mov dword [ebp - 0x14], 0
jmp 0x422018
add esi, 8
push esi
call eax
mov eax, dword [ebp - 0x10]
push esi
mov ecx, dword [eax + 0x34]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 8
push esi
call eax
mov ecx, dword [ebp - 0x10]
push esi
mov eax, dword [ecx + 0x38]
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x14]
mov ecx, dword [edi + 0x48]
call fcn.0041d8d0
cmp eax, dword [ebp - 0x18]
je 0x422063
push 0
push str.Internal_error__length_inconsistency_between_two_calls_to_CAxCryptMeta::Emit__
push 0x64
lea ecx, [edi + 8]
call fcn.004247b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x10]
call dword [eax + 0x44]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
push 0
push 0
mov ecx, edi
call fcn.00423c10
lea ecx, [ebp - 0x58]
call fcn.00423630
push 0x70
mov dword [ebp - 4], 2
call fcn.00429f84
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00424010
xorps xmm0, xmm0
mov byte [ebp - 4], 2
movups xmmword [esi + 0x48], xmm0
mov dword [esi + 0x58], 0
mov ecx, esi
movups xmmword [esi + 0x5c], xmm0
mov dword [esi], fcn.0040ac50
push dword [edi + 0x48]
call fcn.00421b20
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
mov esi, eax
push 1
push esi
call dword [edx + 0x4c]
push 0x1c
call fcn.00429f84
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x58]
add esp, 4
mov word [eax + 4], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
push 1
mov dword [eax + 0x18], 0
mov byte [eax + 0x14], 0
mov dword [eax], fcn.0040ac50
push eax
mov eax, dword [ebp - 0x58]
call dword [eax + 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00423750
lea ecx, [ebp - 0x58]
call fcn.00424420
mov ecx, eax
call fcn.00424520
mov ecx, eax
call fcn.004244a0
mov ecx, eax
call fcn.004246a0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x422156
call fcn.00424840
jmp 0x422159
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4221a1
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x422176
mov ecx, edx
call fcn.00424820
mov ecx, edx
mov esi, eax
call fcn.00424840
jmp 0x42217c
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
push 0
push esi
push eax
lea ecx, [edi + 8]
call fcn.004247b0
lea ecx, [ebp - 0x58]
call fcn.004236b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x48]
lea eax, [esi + 0x30]
push eax
call fcn.00420990
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.004236b0
push 0
push 0
mov ecx, edi
call fcn.00423c10
push 0x3c
call fcn.00429f84
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 4
mov esi, 0x10
mov edx, dword [edi + 0x48]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp ecx, dword [edx + 4]
je 0x4221ff
mov eax, dword [edx + 4]
add esi, 5
add esi, dword [ecx + 0xc]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4221f0
mov eax, dword [ebp - 0x10]
sub esp, 0xc
mov dword [eax], 0x460014
mov ecx, eax
push esi
call fcn.004233b0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x10]
push esi
mov eax, dword [ecx + 0x38]
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.004234e0
mov ecx, dword [edi + 0x48]
push eax
call fcn.0041d8d0
cmp eax, dword [ebp - 0x18]
jne 0x422041
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x44]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov ecx, edi
call fcn.00422690
push edx
push eax
mov ecx, edi
call fcn.00423c10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret