Function at 0x422d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4a4284]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x10], 0
je 0x4230f9
mov ecx, esi
call fcn.00402130
test al, al
je 0x4230f9
cmp byte [ebp + 0x10], 0
jne 0x4230f9
cmp dword [ebp + 0x14], 3
jne 0x4230f9
push 0x200
lea eax, [esp + 0x23c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, esi
push 0
call fcn.00423e60
add esp, 4
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], 0x10
cmovae eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x23c]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edx, dword [esp + 0x40]
add esp, 0xc
cmp edx, 0x10
jb 0x422e45
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422e3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x422e3b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046e3ec
add esp, 8
lea eax, [esp + 0x238]
push 0x3a
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4230ef
mov ebx, edi
lea eax, [esp + 0x238]
sub ebx, eax
cmp ebx, 2
jl 0x4230ef
push 0x200
lea eax, [esp + 0x3c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov cl, byte [edi + 1]
lea eax, [edi + 1]
add esp, 0xc
cmp cl, 0x5c
je 0x422e9a
cmp cl, 0x2f
jne 0x422e9d
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x3c]
push 0x200
push eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
call eax
mov cl, byte [esp + 0x44]
lea eax, [esp + 0x44]
add esp, 0xc
test cl, cl
je 0x422ed0
nop
cmp cl, 0x5c
jne 0x422ec8
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x422ec0
push 0x200
lea eax, [esp + 0x43c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x238]
push ebx
push eax
lea eax, [esp + 0x440]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0xc
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x43c]
movq qword [esp + 0x14], xmm0
call fcn.004276e0
mov edi, eax
add esp, 4
test edi, edi
je 0x423063
push ecx
lea edx, [esp + 0x3c]
mov ecx, edi
call fcn.00427ff0
add esp, 4
test eax, eax
jne 0x42301c
mov ecx, edi
call fcn.00428560
test eax, eax
jne 0x423002
mov ecx, dword [edi + 0xe0]
cmp dword [ecx + 0xb8], eax
jne 0x422fe8
mov eax, dword [ecx + 0xc0]
add eax, dword [ecx + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x78]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x438]
push 0x48b640
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x422fce
push 0
push dword [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x42303c
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x42303c
cmp dword [esi + 0x14], 8
mov dword [0x4a8ed8], 4
jb 0x422fe0
mov esi, dword [esi]
push esi
push 0x48b648
jmp 0x423034
cmp dword [esi + 0x14], 8
mov dword [0x4a8ed8], 0x2e
jb 0x422ffa
mov esi, dword [esi]
push esi
push 0x48b6b8
jmp 0x423034
cmp dword [esi + 0x14], 8
mov dword [0x4a8ed8], 0x2d
jb 0x423014
mov esi, dword [esi]
push esi
push 0x48b730
jmp 0x423034
cmp dword [esi + 0x14], 8
mov dword [0x4a8ed8], 0x2c
jb 0x42302e
mov esi, dword [esi]
push esi
push 0x48b7a0
call fcn.004136e0
add esp, 8
cmp dword [edi + 0xe0], 0
je 0x42304c
mov ecx, edi
call fcn.00428780
push dword [edi + 0x30]
mov eax, dword [edi + 0x14]
push dword [edi + 0x1c]
call eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
jmp 0x423083
cmp dword [esi + 0x14], 8
mov dword [0x4a8ed8], 0x2b
jb 0x423075
mov esi, dword [esi]
push esi
push str.ZIP_IO::OpenFile__
call fcn.004136e0
add esp, 8
cmp dword [esp + 0x10], 0
je 0x4230f9
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov edx, dword [ecx + 4]
cmp dword [ecx + 8], edx
je 0x4230c9
movq xmm0, qword [esp + 0x10]
movq qword [edx], xmm0
mov eax, dword [esp + 0x18]
mov dword [edx + 8], eax
add dword [ecx + 4], 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
push edx
call fcn.00423390
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x4a8ed8], 1
mov ecx, dword [esp + 0x63c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret 0x10