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

Disassembly:
sub esp, 0x114
push ebx
push esi
mov ecx, 0x55e968
call fcn.004cefb0
mov ecx, 0x55e948
call fcn.004cf1f0
or eax, 0xffffffff
xor ebx, ebx
mov dword [0x54e5c0], eax
mov dword [0x54e5c4], eax
mov dword [0x54e5cc], eax
mov eax, dword [0x55e9b0]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
jle 0x4c9e23
push ebp
push edi
mov edi, 0x55e5d4
mov dword [esp + 0x20], edi
cmp dword [edi - 8], ebx
je 0x4c9e03
mov eax, dword [edi - 0xc]
cmp dword [eax - 0xc], ebx
jl 0x4c9923
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call ebp
jmp 0x4c993d
mov ecx, dword [0x547570]
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 [0x547570]
mov eax, 0x547828
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], ebx
je 0x4c9b4c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x4c9b4c
mov ecx, 0x547830
test ecx, ecx
jne 0x4c997a
mov dword [esp + 0x24], ecx
jmp 0x4c9985
push 0x547830
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 0x4c9b03
push 0x547828
push esi
call fcn.0053225f
add esp, 8
test eax, eax
je 0x4c99c1
lea esi, [eax + ebx*2]
push 0x547828
push esi
inc edi
call fcn.0053225f
add esp, 8
test eax, eax
jne 0x4c99ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x4c9999
test edi, edi
jle 0x4c9b42
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 0x4c9a08
cmp dword [esi - 0xc], 1
jle 0x4c9a46
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
call fcn.00405530
test eax, eax
je 0x4c9b42
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 0x4c9afc
push 0x547828
push esi
call fcn.0053225f
mov edi, eax
add esp, 8
test edi, edi
je 0x4c9ae1
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.00532360
mov ecx, esi
mov esi, 0x547830
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 0x547828
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.0053225f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4c9a6c
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 0x4c9a58
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.005190f0
add esp, 0x10
test eax, eax
je 0x4c9def
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x4c9b52
push eax
mov dword [esp + 0x14], ecx
call ebp
jmp 0x4c9b66
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x14]
jmp 0x4c9b0d
mov edx, dword [0x547570]
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 0x4c9dbc
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 0x4c9bab
mov edx, dword [edi - 4]
mov dword [0x54e5c0], edx
jmp 0x4c9da0
push 0
push 0x54eee8
lea ecx, [esp + 0x18]
call fcn.00405c70
test eax, eax
jne 0x4c9bcc
mov eax, dword [edi - 4]
mov dword [0x54e5cc], eax
jmp 0x4c9da0
lea ecx, [esp + 0x78]
call fcn.004cc150
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.004cf050
lea edx, [esp + 0x48]
push eax
push edx
mov ecx, 0x55e968
call fcn.004ceeb0
mov esi, dword [eax]
lea ecx, [esp + 0xb8]
call fcn.004ce980
lea ecx, [esp + 0x78]
call fcn.004330a0
mov eax, dword [edi - 4]
lea ecx, [esp + 0x58]
mov dword [esi + 0x18], eax
call fcn.004cc150
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xe4]
call fcn.004cf050
lea edx, [esp + 0x40]
push eax
push edx
mov ecx, 0x55e968
call fcn.004ceeb0
mov esi, dword [eax]
lea ecx, [esp + 0xdc]
call fcn.004ce980
lea ecx, [esp + 0x58]
call fcn.004330a0
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x18]
add esi, 0x10
cmp eax, ecx
je 0x4c9ca4
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4c9c78
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4c9c7f
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4c9c8d
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00405870
jmp 0x4c9ca4
mov ecx, esi
call fcn.004124c0
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.004cc150
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x108]
call fcn.004cf050
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, 0x55e968
call fcn.004ceeb0
mov esi, dword [eax]
lea ecx, [esp + 0x100]
call fcn.004ce980
lea ecx, [esp + 0x98]
call fcn.004330a0
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x10]
add esi, 0x14
cmp eax, ecx
je 0x4c9d3a
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4c9d0e
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4c9d15
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4c9d23
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, esi
call fcn.00405870
jmp 0x4c9d3a
mov ecx, esi
call fcn.004124c0
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, 0x55e968
push edx
call fcn.004ce270
mov ecx, dword [edi]
lea edx, [esp + 0x10]
mov dword [eax + 0xc], ecx
push edx
mov ecx, 0x55e968
call fcn.004ce270
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x10]
mov dword [eax + 0x10], ecx
push edx
mov ecx, 0x55e968
call fcn.004ce270
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
mov dword [eax + 0x14], ecx
push edx
mov ecx, 0x55e968
call fcn.004ce270
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
mov dword [eax + 0x18], ecx
push edx
mov ecx, 0x55e968
call fcn.004ce270
mov dword [eax + 0x1c], ebx
inc ebx
push 0
push 0x547cc8
lea ecx, [esp + 0x18]
call fcn.00405c70
test eax, eax
jne 0x4c9dbc
mov eax, dword [edi - 4]
mov dword [0x54e5c4], 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.005190f0
add esp, 0x10
test eax, eax
jne 0x4c9b2b
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 [0x55e9b0]
inc eax
add edi, 0x1c
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jl 0x4c9900
pop edi
pop ebp
mov esi, dword [0x55e974]
cmp esi, ebx
je 0x4c9e73
lea eax, [esp + 0x24]
mov ecx, 0x55e968
push eax
call fcn.00524430
mov eax, dword [esp + 0x24]
cmp esi, ebx
mov dword [esp + 0x14], eax
jle 0x4c9e73
jmp 0x4c9e4e
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x10]
add eax, 0x2c
push ecx
push eax
mov ecx, 0x55e948
call fcn.004ce540
mov ecx, eax
call fcn.004c9e90
lea ecx, [esp + 0x14]
call fcn.004cfd10
dec esi
jne 0x4c9e4a
mov eax, dword [0x54e5c8]
pop esi
inc eax
pop ebx
mov dword [0x54e5c8], eax
mov eax, dword [0x55e954]
add esp, 0x114
ret