Function at 0x100317b0
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 0x1003180f
xor edi, edi
nop dword [eax + eax]
mov eax, dword [esi + 0x54]
mov edx, dword [edi + eax]
test edx, edx
je 0x10031803
cmp byte [edi + eax + 8], 0
je 0x10031803
mov eax, dword [0x100cbe88]
test eax, eax
je 0x100317f0
dec dword [eax + 0xb0]
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 0x100317d0
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x1003184e
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
cmp dword [edi + 0x34], eax
jb 0x10031848
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp dword [edi + 0x34], eax
jae 0x10031848
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 0x10031816
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x1003187f
mov eax, dword [0x100cbe88]
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
test eax, eax
je 0x10031872
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x54], 0
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x100318b0
mov eax, dword [0x100cbe88]
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
test eax, eax
je 0x100318a3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x464], 0xffffffff
mov dword [esi + 0x460], 0xffffffff
test ecx, ecx
je 0x100318e0
mov eax, dword [0x100cbe88]
test eax, eax
je 0x100318da
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x100318fc
mov eax, dword [0x100cbe88]
test eax, eax
je 0x100318f6
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x12], 0
mov dword [ebp - 4], ecx
cmp dword [esi + 0x34], ecx
jle 0x100319aa
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x1003199d
mov ecx, edi
call fcn.10033c00
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x1003194d
mov eax, dword [0x100cbe88]
test eax, eax
je 0x10031947
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10031969
mov eax, dword [0x100cbe88]
test eax, eax
je 0x10031963
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10031985
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1003197f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [0x100cbe88]
test eax, eax
je 0x10031994
dec dword [eax + 0xb0]
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 0x10031920
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100319db
mov eax, dword [0x100cbe88]
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
test eax, eax
je 0x100319ce
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x3c], 0
pop edi
mov byte [esi + 0x11], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret