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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
cmp dword [esi + 0x4c], ecx
jle 0x42030f
xor edi, edi
nop dword [eax + eax]
mov eax, dword [esi + 0x54]
mov edx, dword [edi + eax]
test edx, edx
je 0x420303
cmp byte [edi + eax + 8], 0
je 0x420303
mov eax, dword [0x4598f8]
test eax, eax
je 0x4202f0
dec dword [eax + 0x370]
push edx
call ebx
mov eax, dword [esi + 0x54]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [edi + eax], 0
inc ecx
add edi, 0x78
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x4c]
jl 0x4202d0
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x42034e
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
cmp dword [edi + 0x34], eax
jb 0x420348
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp dword [edi + 0x34], eax
jae 0x420348
mov dword [edi + 0x34], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
inc edx
cmp edx, dword [esi + 0x34]
jl 0x420316
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x42037f
mov eax, dword [0x4598f8]
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
test eax, eax
je 0x420372
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x54], 0
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4203b0
mov eax, dword [0x4598f8]
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
test eax, eax
je 0x4203a3
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x45c], 0xffffffff
mov dword [esi + 0x458], 0xffffffff
test ecx, ecx
je 0x4203e0
mov eax, dword [0x4598f8]
test eax, eax
je 0x4203da
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4203fc
mov eax, dword [0x4598f8]
test eax, eax
je 0x4203f6
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], ecx
cmp dword [esi + 0x34], ecx
jle 0x4204a2
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x420495
mov ecx, edi
call fcn.00422420
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x420445
mov eax, dword [0x4598f8]
test eax, eax
je 0x42043f
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x420461
mov eax, dword [0x4598f8]
test eax, eax
je 0x42045b
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x42047d
mov eax, dword [0x4598f8]
test eax, eax
je 0x420477
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov eax, dword [0x4598f8]
test eax, eax
je 0x42048c
dec dword [eax + 0x370]
push edi
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x34]
jl 0x420418
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4204d3
mov eax, dword [0x4598f8]
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
test eax, eax
je 0x4204c6
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret