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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x10]
pop ebx
mov ax, word [eax + 0x3c]
push 0x595ee8
mov word [ebp - 0x14], ax
mov eax, dword [esi + 0xc]
push dword [ebp + 0x14]
mov dword [ebp - 8], ebx
imul ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, dword [ecx + eax]
and dword [ebp - 4], 0
call fcn.004842f6
pop ecx
test ax, ax
pop ecx
jne 0x4ba48d
push 0x59365c
push dword [ebp + 0x14]
call fcn.004842f6
pop ecx
test ax, ax
pop ecx
jne 0x4ba48d
and dword [ebp - 0xc], 0
jmp 0x4ba490
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
movsx eax, word [eax - 2]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4ba4b5
push 0x5a94a0
push dword [ebp + 8]
call fcn.004c3487
pop ecx
pop ecx
jmp 0x4ba66e
mov eax, dword [esi + 4]
mov ecx, dword [edi]
push 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
imul ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov ebx, dword [ecx + eax]
lea eax, [ebp - 0x44]
push eax
push dword [ebx + 0x54]
push dword [ebx + 0x50]
call fcn.004a2965
add esp, 0x10
cmp dword [edi + 0x20], 2
jne 0x4ba4f5
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x4ba4f5
push eax
push dword [ebp + 8]
call ecx
pop ecx
pop ecx
push 1
pop eax
mov dword [edi + 0x20], eax
cmp dword [ebp - 0x1c], 0
jbe 0x4ba66e
mov dword [ebp - 8], eax
jmp 0x4ba50d
push 1
pop eax
mov ecx, dword [esi + 0x20]
cmp dword [ebp + 0x10], eax
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x24], 0x400
mov dword [ebp - 0x28], ecx
jle 0x4ba56c
cmp word [ebp + 0x18], 0
je 0x4ba535
push 0x5d
push dword [ebp + 8]
call fcn.004c353e
pop ecx
pop ecx
cmp dword [ebp + 0x14], 0
je 0x4ba56c
cmp dword [ebp + 0x10], 2
jle 0x4ba559
cmp word [ebp - 0xc], 0
je 0x4ba559
push 0x5a949c
push dword [ebp + 8]
call fcn.004c3487
pop ecx
pop ecx
jmp 0x4ba56c
push dword [ebp + 0x14]
push 0x5a9480
push dword [ebp + 8]
call fcn.004c3895
add esp, 0xc
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push dword [ebp + 8]
call dword [eax + 0x70]
add esp, 0x20
test ax, ax
jne 0x4ba59e
push 0x40080006
call fcn.00401daf
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jbe 0x4ba5b1
push 0x2003003b
call fcn.00401daf
pop ecx
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x1c], eax
add dword [ebp - 0x20], eax
cmp word [ebp - 4], 0
jbe 0x4ba5dc
movzx eax, word [ebp - 4]
push eax
lea eax, [ebp - 0x44]
push eax
push str.__sComponent_d
push dword [ebp + 8]
call fcn.004c3895
add esp, 0x10
jmp 0x4ba5f0
lea eax, [ebp - 0x44]
push eax
push str.__s
push dword [ebp + 8]
call fcn.004c3895
add esp, 0xc
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x74], 0
je 0x4ba61a
lea ecx, [ebp - 0x30]
push eax
push ecx
push ebx
call dword [eax + 0x74]
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
test ecx, ecx
je 0x4ba61a
movzx eax, word [ebp - 4]
lea eax, [eax + eax*2]
mov word [ecx + eax*8 + 0x10], 1
push dword [edi + 4]
push str._f_Tf
push dword [ebp + 8]
call fcn.004c3895
add esp, 0xc
cmp dword [ebp + 0x10], 0
jle 0x4ba64d
cmp word [ebp + 0x18], 0
je 0x4ba64d
push 0x5b
push dword [ebp + 8]
call fcn.004c353e
pop ecx
mov dword [ebp - 8], 1
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.004c32a7
add esp, 0x10
inc dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 0
ja 0x4ba50a
cmp dword [ebp + 0x10], 2
jle 0x4ba68e
cmp word [ebp - 0xc], 0
je 0x4ba68e
push 0x5a949c
push dword [ebp + 8]
call fcn.004c3487
and dword [ebp - 8], 0
pop ecx
pop ecx
mov ax, word [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret