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

Disassembly:
sub esp, 0x114
push ebx
push esi
mov ecx, 0x55d8b0
call fcn.004cdfd0
mov ecx, 0x55d890
call fcn.004ce210
or eax, 0xffffffff
xor ebx, ebx
mov dword [0x54d550], eax
mov dword [0x54d554], eax
mov dword [0x54d55c], eax
mov eax, dword [0x55d8f8]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
jle 0x4c8da3
push ebp
push edi
mov edi, 0x55d51c
mov dword [esp + 0x20], edi
cmp dword [edi - 8], ebx
je 0x4c8d83
mov eax, dword [edi - 0xc]
cmp dword [eax - 0xc], ebx
jl 0x4c88a3
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call ebp
jmp 0x4c88bd
mov ecx, dword [0x546560]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00405920
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [0x546560]
mov eax, 0x546818
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], ebx
je 0x4c8acc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x4c8acc
mov ecx, 0x546820
test ecx, ecx
jne 0x4c88fa
mov dword [esp + 0x24], ecx
jmp 0x4c8905
push 0x546820
call esi
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x14]
xor edi, edi
mov edx, dword [esi - 8]
lea ebp, [esi + edx*2]
cmp esi, ebp
jae 0x4c8a83
push 0x546818
push esi
call fcn.0053176f
add esp, 8
test eax, eax
je 0x4c8941
lea esi, [eax + ebx*2]
push 0x546818
push esi
inc edi
call fcn.0053176f
add esp, 8
test eax, eax
jne 0x4c892b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x4c8919
test edi, edi
jle 0x4c8ac2
lea ecx, [esp + 0x14]
call fcn.004055c0
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x28], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x3c], ebp
cmp eax, ebp
jl 0x4c8988
cmp dword [esi - 0xc], 1
jle 0x4c89c6
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
call fcn.00405530
test eax, eax
je 0x4c8ac2
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x14]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405590
mov esi, dword [esp + 0x14]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x4c8a7c
push 0x546818
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
test edi, edi
je 0x4c8a61
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [esi + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x3c], eax
call fcn.00531870
mov ecx, esi
mov esi, 0x546820
mov edx, ecx
mov eax, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x546818
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x40]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x3c]
add ebp, eax
mov dword [esp + 0x3c], ebp
call fcn.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4c89ec
mov ebp, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x4c89d8
mov esi, dword [esp + 0x14]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x3b
push 0
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00518490
add esp, 0x10
test eax, eax
je 0x4c8d6f
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x4c8ad2
push eax
mov dword [esp + 0x14], ecx
call ebp
jmp 0x4c8ae6
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x14]
jmp 0x4c8a8d
mov edx, dword [0x546560]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00405920
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4c8d3c
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push str.BG_A
lea ecx, [esp + 0x18]
call fcn.00405c70
test eax, eax
jne 0x4c8b2b
mov edx, dword [edi - 4]
mov dword [0x54d550], edx
jmp 0x4c8d20
push 0
push 0x54de78
lea ecx, [esp + 0x18]
call fcn.00405c70
test eax, eax
jne 0x4c8b4c
mov eax, dword [edi - 4]
mov dword [0x54d55c], eax
jmp 0x4c8d20
lea ecx, [esp + 0x78]
call fcn.004cb130
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.004ce070
lea edx, [esp + 0x48]
push eax
push edx
mov ecx, 0x55d8b0
call fcn.004cded0
mov esi, dword [eax]
lea ecx, [esp + 0xb8]
call fcn.004cd9a0
lea ecx, [esp + 0x78]
call fcn.004ca800
mov eax, dword [edi - 4]
lea ecx, [esp + 0x58]
mov dword [esi + 0x18], eax
call fcn.004cb130
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xe4]
call fcn.004ce070
lea edx, [esp + 0x40]
push eax
push edx
mov ecx, 0x55d8b0
call fcn.004cded0
mov esi, dword [eax]
lea ecx, [esp + 0xdc]
call fcn.004cd9a0
lea ecx, [esp + 0x58]
call fcn.004ca800
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x18]
add esi, 0x10
cmp eax, ecx
je 0x4c8c24
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4c8bf8
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4c8bff
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4c8c0d
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00405870
jmp 0x4c8c24
mov ecx, esi
call fcn.00412670
mov ecx, dword [esp + 0x18]
mov dword [esi], ecx
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call ebp
lea ecx, [esp + 0x98]
call fcn.004cb130
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x108]
call fcn.004ce070
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, 0x55d8b0
call fcn.004cded0
mov esi, dword [eax]
lea ecx, [esp + 0x100]
call fcn.004cd9a0
lea ecx, [esp + 0x98]
call fcn.004ca800
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x10]
add esi, 0x14
cmp eax, ecx
je 0x4c8cba
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4c8c8e
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4c8c95
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4c8ca3
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, esi
call fcn.00405870
jmp 0x4c8cba
mov ecx, esi
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call ebp
lea edx, [esp + 0x10]
mov ecx, 0x55d8b0
push edx
call fcn.004cd260
mov ecx, dword [edi]
lea edx, [esp + 0x10]
mov dword [eax + 0xc], ecx
push edx
mov ecx, 0x55d8b0
call fcn.004cd260
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x10]
mov dword [eax + 0x10], ecx
push edx
mov ecx, 0x55d8b0
call fcn.004cd260
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
mov dword [eax + 0x14], ecx
push edx
mov ecx, 0x55d8b0
call fcn.004cd260
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
mov dword [eax + 0x18], ecx
push edx
mov ecx, 0x55d8b0
call fcn.004cd260
mov dword [eax + 0x1c], ebx
inc ebx
push 0
push 0x546cb8
lea ecx, [esp + 0x18]
call fcn.00405c70
test eax, eax
jne 0x4c8d3c
mov eax, dword [edi - 4]
mov dword [0x54d554], eax
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
inc esi
mov dword [esp + 0x38], esi
call fcn.00405700
mov ecx, dword [esp + 0x14]
push 0x3b
push esi
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00518490
add esp, 0x10
test eax, eax
jne 0x4c8aab
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x55d8f8]
inc eax
add edi, 0x1c
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jl 0x4c8880
pop edi
pop ebp
mov esi, dword [0x55d8bc]
cmp esi, ebx
je 0x4c8df3
lea eax, [esp + 0x24]
mov ecx, 0x55d8b0
push eax
call fcn.0043d590
mov eax, dword [esp + 0x24]
cmp esi, ebx
mov dword [esp + 0x14], eax
jle 0x4c8df3
jmp 0x4c8dce
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x10]
add eax, 0x2c
push ecx
push eax
mov ecx, 0x55d890
call fcn.004cd530
mov ecx, eax
call fcn.004c8e10
lea ecx, [esp + 0x14]
call fcn.004ced90
dec esi
jne 0x4c8dca
mov eax, dword [0x54d558]
pop esi
inc eax
pop ebx
mov dword [0x54d558], eax
mov eax, dword [0x55d89c]
add esp, 0x114
ret