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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x60]
lea ecx, [ebp + ecx*4]
mov ebp, dword [esp + 0x74]
sub ebp, dword [esp + 0x6c]
mov dword [esp + 0x38], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x70]
sub ebp, dword [esp + 0x74]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x34]
lea eax, [ebp + ebp*8]
mov ebp, dword [esp + 0x3c]
lea eax, [ebp + eax*2]
mov esi, dword [ecx + eax*4 + 0x164]
mov edi, dword [ecx + eax*4 + 0x6c0]
test esi, esi
js 0xbab8c1
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x910]
mov eax, dword [edx + 0x440]
imul eax, dword [edx + 0x43c]
mov edx, dword [ecx + 0xcc]
mov dword [esp + 4], 0
shl eax, 2
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x74], ecx
je 0xbabbcc
mov edx, dword [ebx + 0x910]
mov ebp, dword [esp + 0x38]
mov eax, dword [edx + 0x440]
imul eax, dword [edx + 0x43c]
lea edx, [eax*4]
mov eax, dword [ebp]
mov eax, dword [eax + 0xd0]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x70], ecx
mov dword [esp + 0x28], pe_nt_image_headers32
je 0xbab96c
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
mov edx, ecx
sar edx, 1
shl eax, 8
add eax, edx
mov edx, eax
sar edx, 0x1f
idiv ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1fc]
test eax, eax
je 0xbabb14
mov edx, dword [ebx + 0x910]
xor esi, esi
mov dword [ebx + 0x3a524], 0
mov ebp, dword [edx + 0x440]
test ebp, ebp
jle 0xbabaa1
mov dword [esp + 0x2c], esi
xor ecx, ecx
mov esi, edi
mov dword [esi + ecx*4], 0
mov ecx, dword [edx + 0x43c]
mov dword [ebx + 0x3a520], 0
test ecx, ecx
jg 0xbab9e5
jmp 0xbabbe6
mov ebp, dword [edx + 0x43c]
mov edi, dword [ebx + 0x3a520]
mov dword [esp + 0x24], ebp
add edi, 1
cmp dword [esp + 0x24], edi
mov dword [ebx + 0x3a520], edi
jle 0xbaba88
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.00baab80
mov edx, dword [ebx + 0x3a524]
add dword [esi + edx*4], eax
mov ecx, dword [ebx + 0x3a524]
mov edx, dword [ebx + 0x910]
test ecx, ecx
jle 0xbabaf0
mov edi, dword [edx + 0x440]
sub edi, 1
cmp ecx, edi
jge 0xbab9c2
mov edi, dword [ebx + 0x3a520]
test edi, edi
jle 0xbabb05
mov ebp, dword [edx + 0x43c]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebp
sub ebp, 1
cmp edi, ebp
cmovge eax, dword [esp + 0x2c]
add edi, 1
cmp dword [esp + 0x24], edi
mov dword [ebx + 0x3a520], edi
mov dword [esp + 0x2c], eax
jg 0xbab9e5
add ecx, 1
cmp dword [edx + 0x440], ecx
mov dword [ebx + 0x3a524], ecx
jg 0xbab9a2
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x70]
cmp dword [esp + 0x74], ebp
je 0xbababf
imul esi, esi, 0x64
mov ecx, dword [ebx + 0x6c]
mov edx, esi
mov eax, esi
add ecx, 0x78
sar edx, 0x1f
idiv ecx
mov esi, eax
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x3c]
lea edx, [ebp + ebp*8]
lea edx, [ecx + edx*2 + 0x58]
mov dword [eax + edx*4 + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00bd38f0
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx + 0x43c]
mov edi, dword [ebx + 0x3a520]
mov dword [esp + 0x24], eax
jmp 0xbab9d2
mov eax, dword [edx + 0x43c]
mov dword [esp + 0x24], eax
jmp 0xbab9d2
mov edx, dword [ebx + 0x910]
xor esi, esi
mov dword [ebx + 0x3a524], 1
cmp dword [edx + 0x440], 2
jle 0xbabaa1
mov edi, dword [esp + 0x68]
mov eax, 1
mov ebp, dword [esp + 0x6c]
cmp dword [edx + 0x43c], 2
mov dword [ebx + 0x3a520], 1
jle 0xbabbad
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.00baab80
mov edx, dword [ebx + 0x910]
mov ecx, dword [edx + 0x43c]
add esi, eax
mov eax, dword [ebx + 0x3a520]
sub ecx, 1
add eax, 1
cmp ecx, eax
mov dword [ebx + 0x3a520], eax
jg 0xbabb53
mov eax, dword [ebx + 0x3a524]
mov ecx, dword [edx + 0x440]
add eax, 1
mov dword [ebx + 0x3a524], eax
sub ecx, 1
cmp ecx, eax
jg 0xbabb40
jmp 0xbabaa1
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov eax, dword [ecx]
mov dword [eax + ebp*4 + 0x678], 0
jmp 0xbab93a
mov ecx, dword [ebx + 0x3a524]
jmp 0xbaba88