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

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
lea ecx, [eax + 0x8b0]
add eax, 0x304
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
push esi
push edi
mov dword [esp + 0x28], eax
xor edi, edi
mov edx, dword [ecx + 0x14]
mov ebp, dword [ecx + 4]
mov eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
sub ebp, edx
sar ebp, 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov dword [ebx + 0x10], 0
test ebp, ebp
je 0x4c2a9a
mov ecx, eax
add edx, 6
mov eax, esi
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x20], eax
bsr esi, dword [edx - 6]
movzx eax, word [edx - 2]
mov dword [esp + 0x18], esi
movzx esi, word [edx]
cmp eax, 0x3f
jbe 0x4c2a4d
bsr eax, eax
add eax, 0x13
jmp 0x4c2a54
movzx eax, byte [eax + 0x5983f0]
mov byte [ebx + ecx], al
mov eax, dword [esp + 0x18]
mov byte [ecx], al
cmp esi, 0x7f
jbe 0x4c2a6a
bsr eax, esi
add eax, 0x24
jmp 0x4c2a71
movzx eax, byte [esi + 0x598430]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x18], 0x19
mov byte [esi + ecx], al
mov eax, 1
cmovae edi, eax
add edx, 8
inc ecx
sub ebp, 1
jne 0x4c2a31
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
cmp dword [ecx + 0x24], 1
jne 0x4c2aa7
mov eax, dword [ecx + 0x28]
mov byte [esi + eax], 0x23
cmp dword [ecx + 0x24], 2
jne 0x4c2ab8
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x10]
mov byte [ecx + eax], 0x34
push dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x34]
push dword [esp + 0x58]
mov dword [ebx + 0x14], edi
mov edi, dword [esp + 0x40]
push edi
push esi
push eax
push ebp
mov dword [esp + 0x48], 0x23
call fcn.00506d10
push dword [esp + 0x64]
mov esi, dword [esp + 0x58]
mov ecx, eax
mov edx, dword [esp + 0x5c]
push 1
push 6
mov eax, dword [esi + 0xddc]
add edx, 0xddc
push 0x5982a8
add esi, 0x8b0
push esi
push 9
push edi
push ecx
push dword [esp + 0x68]
mov dword [edx], eax
push ebp
push edx
call fcn.0050e2d0
mov ecx, dword [esp + 0x9c]
add esp, 0x44
mov dword [ebx], eax
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push 0x524
push esi
mov ecx, dword [esp + 0x58]
push 0x23
push 6
push 0x5982a8
push edi
push dword [esp + 0x3c]
push dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x70]
sub ecx, ebp
push eax
push 9
push dword [esp + 0x58]
push ecx
push ebp
call fcn.0050d9d0
add esp, 0x40
cmp eax, 0xffffff88
ja 0x4c2cfd
cmp dword [ebx], 2
jne 0x4c2b72
mov dword [ebx + 0x10], eax
push dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add ebp, eax
push dword [esp + 0x58]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x1f
push edi
push dword [esp + 0x20]
push eax
push ecx
call fcn.00506d10
push dword [esp + 0x64]
mov edi, dword [esp + 0x50]
mov ecx, 0x1c
mov esi, dword [esp + 0x5c]
cmp ecx, edi
mov ecx, dword [esp + 0x58]
sbb edx, edx
add esi, 0xdd4
inc edx
push edx
mov ecx, dword [ecx + 0xdd4]
push 5
push 0x598398
push dword [esp + 0x64]
mov dword [esi], ecx
push 8
push dword [esp + 0x68]
push eax
push edi
push dword [esp + 0x8c]
push esi
call fcn.0050e2d0
mov ecx, dword [esp + 0x9c]
add esp, 0x44
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
mov dword [ebx + 4], eax
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push 0x304
push dword [esp + 0x48]
push 0x1c
push 5
push 0x598398
push edi
push dword [esp + 0x34]
push dword [esp + 0x58]
push esi
push eax
mov eax, dword [esp + 0x78]
push 8
push dword [esp + 0x74]
sub eax, ebp
push eax
push ebp
call fcn.0050d9d0
add esp, 0x40
cmp eax, 0xffffff88
ja 0x4c2cfd
cmp dword [ebx + 4], 2
jne 0x4c2c41
mov dword [ebx + 0x10], eax
push dword [esp + 0x58]
add ebp, eax
mov dword [esp + 0x18], 0x34
push dword [esp + 0x58]
lea eax, [esp + 0x1c]
push edi
push dword [esp + 0x1c]
push eax
push esi
call fcn.00506d10
push dword [esp + 0x64]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push 1
push 6
mov ecx, dword [esi + 0xdd8]
add edx, 0xdd8
push 0x598328
add esi, 0x304
push esi
push 9
push edi
push eax
push dword [esp + 0x4c]
mov dword [edx], ecx
push dword [esp + 0x8c]
push edx
call fcn.0050e2d0
mov ecx, dword [esp + 0x9c]
add esp, 0x44
mov dword [ebx + 8], eax
push ecx
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push 0x5ac
push esi
push 0x34
push 6
push 0x598328
push edi
push dword [esp + 0x30]
push dword [esp + 0x38]
push ecx
push eax
mov eax, dword [esp + 0x78]
push 9
push dword [esp + 0x5c]
sub eax, ebp
push eax
push ebp
call fcn.0050d9d0
add esp, 0x40
cmp eax, 0xffffff88
ja 0x4c2cfd
cmp dword [ebx + 8], 2
jne 0x4c2cf7
mov dword [ebx + 0x10], eax
sub eax, dword [esp + 0x44]
add eax, ebp
pop edi
pop esi
mov dword [ebx + 0xc], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret