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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
cmp byte [eax + 0x3c], 0
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea esi, [ebx + 0x3c]
mov dword [ebp - 0xc], esi
jne 0x424874
push 0x60
call edi
mov ecx, dword [0x438420]
add esp, 4
test ecx, ecx
je 0x424847
inc dword [ecx + 0xb0]
test eax, eax
je 0x424862
mov ecx, eax
call fcn.00426ca0
mov dword [ebp - 8], eax
mov ecx, esi
lea eax, [ebp - 8]
push eax
call fcn.00418e90
jmp 0x424877
xor eax, eax
mov ecx, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00418e90
jmp 0x424877
mov dword [ebp - 0xc], esi
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x58]
cmp esi, ecx
jne 0x42490c
inc esi
test ecx, ecx
je 0x424895
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x42489a
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x42490c
mov eax, esi
shl eax, 4
sub eax, esi
shl eax, 3
push eax
call edi
mov dword [ebp - 8], eax
add esp, 4
mov eax, dword [0x438420]
lea edi, [eax + 0xb0]
test eax, eax
je 0x4248c7
inc dword [edi]
mov edx, dword [ebx + 0x5c]
test edx, edx
je 0x424903
mov ecx, dword [ebx + 0x54]
shl ecx, 4
sub ecx, dword [ebx + 0x54]
shl ecx, 3
push ecx
push edx
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x5c]
add esp, 0xc
test eax, eax
je 0x4248f9
cmp dword [0x438420], 0
je 0x4248f9
dec dword [edi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x58], esi
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebp + 8]
mov esi, edx
shl ecx, 4
sub ecx, dword [ebx + 0x54]
lea edi, [eax + ecx*8]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x5c]
shl ecx, 4
sub ecx, dword [ebx + 0x54]
cmp dword [eax + ecx*8 - 4], 0
lea esi, [eax + ecx*8]
jne 0x42494f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esi - 4], eax
cmp byte [esi - 0x70], 0
jne 0x42498e
push dword [esi - 0x74]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x438420]
add esp, 4
mov edx, eax
test ecx, ecx
je 0x424973
inc dword [ecx + 0xb0]
mov eax, dword [ebp + 8]
push dword [esi - 0x74]
mov dword [esi - 0x78], edx
mov byte [esi - 0x70], 1
push dword [eax]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi - 4]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x4249a4
mov ax, word [edx + 0x48]
mov word [ecx + 0x3c], ax
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebx + 0x5c]
shl ecx, 4
sub ecx, dword [ebx + 0x54]
lea edi, [edx + ecx*8]
cmp edx, edi
je 0x4249de
nop word [eax + eax]
cmp byte [edx + 0x3c], 0
mov ecx, dword [edx + 0x74]
lea eax, [ecx + 0x38]
jne 0x4249d4
mov dword [ecx + 0x34], edx
xor ecx, ecx
mov word [eax], cx
inc word [eax]
add edx, 0x78
cmp edx, edi
jne 0x4249c0
mov ecx, dword [ebx + 0x1c]
mov byte [ebx + 0x18], 0
test ecx, ecx
je 0x424a06
mov eax, dword [0x438420]
test eax, eax
je 0x4249f8
dec dword [eax + 0xb0]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ecx
call edi
add esp, 4
jmp 0x424a0c
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x424a28
mov eax, dword [0x438420]
test eax, eax
je 0x424a22
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [esi - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4