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

Disassembly:
sub esp, 0x1f0
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0x1ec], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x200]
push edi
mov edi, dword [esp + 0x208]
push esi
mov ebp, dword [esi + 8]
mov dword [esp + 0x18], esi
mov ebx, dword [ebp + 0x24]
call fcn.004a4950
push edi
push esi
mov dword [esp + 0x4c], eax
call fcn.004a4920
push 1
push 2
push 0
mov esi, eax
mov dword [esp + 0x28], 0
push 1
push 5
mov dword [esp + 0x64], esi
call fcn.004e19e0
add esp, 0x20
test al, al
je 0x4c0c10
test edi, edi
je 0x4c0c10
cmp byte [edi + 0x68a], 0
je 0x4c0c10
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4c0c02
cmp dword [eax + 4], 1
jl 0x4c0c10
push 0x408470
push edi
call fcn.004ab3a0
add esp, 8
cmp dword [ebp + 0x20], 0
je 0x4c0c4a
push 0x4084e8
push 0x4084fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4c0c4a
push 3
push 2
push eax
push 3
push 6
call fcn.004e19e0
add esp, 0x14
test al, al
je 0x4c0c4a
mov al, 1
jmp 0x4c0c4c
xor al, al
mov byte [ebx + 0x47], al
mov eax, dword [esp + 0x40]
cmp dword [eax + 4], 0
jne 0x4c0c63
cmp dword [eax + 0x24], 0
jne 0x4c0c63
xor al, al
jmp 0x4c0c7f
push 3
push 2
push 0
push 1
push 6
call fcn.004e19e0
add esp, 0x14
test al, al
je 0x4c1001
mov al, 1
mov byte [ebx + 0x48], al
mov dword [ebx], 0
cmp byte [esi + 0x3c], 0
je 0x4c0ccd
push edi
call fcn.004a5510
push 0
lea eax, [esp + 0x18]
push eax
lea esi, [ebp + 8]
push esi
push edi
push dword [esp + 0x28]
call fcn.004a4f40
add esp, 0x18
test al, al
jne 0x4c0cbd
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
inc dword [eax + 0x18]
push edi
call fcn.004a5540
add esp, 4
cmp dword [ebx], 0
jne 0x4c0d0d
jmp 0x4c0cd0
lea esi, [ebp + 8]
push edi
push dword [esp + 0x18]
call fcn.004bf9a0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4c1014
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4c0cf2
mov eax, dword [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx + 0x10], eax
mov eax, dword [ebx]
cmp dword [eax + 0x10], 0
je 0x4c0f83
cmp dword [ebp + 0x14], 0
je 0x4c0d3e
test edi, edi
je 0x4c0d3e
cmp byte [edi + 0x68a], 0
je 0x4c0d3e
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4c0d30
cmp dword [eax + 4], 1
jl 0x4c0d3e
push 0x408570
push edi
call fcn.004ab3a0
add esp, 8
cmp byte [ebx + 0x47], 0
je 0x4c0e29
mov dword [esp + 0x80], 2
lea eax, [esp + 0x54]
push dword [ebp + 0x20]
push eax
call fcn.004a3d40
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c0d80
push 0x4085a8
push edi
call fcn.004ab2d0
mov eax, 0x23
jmp 0x4c1011
mov esi, dword [esp + 0x78]
lea eax, [esp + 0x54]
push esi
push eax
lea eax, [esp + 0x8e]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esi, 0xa
lea eax, [esi - 0xa]
push eax
call fcn.004aeb30
mov word [esp + 0x94], ax
movzx eax, ax
add eax, 6
mov dword [esp + 0x2c], esi
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x30], 0x12
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
push dword [ebp + 0x20]
push eax
call fcn.004a3de0
add esp, 0x18
test edi, edi
je 0x4c0e59
cmp byte [edi + 0x68a], 0
je 0x4c0e59
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4c0e14
cmp dword [eax + 4], 1
jl 0x4c0e59
lea eax, [esp + 0x54]
push eax
push 0x4085bc
push edi
call fcn.004ab3a0
add esp, 0xc
jmp 0x4c0e59
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 1
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
mov dword [esp + 0x50], eax
mov edx, 0x819c
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [ebx + 0x38], 0x811c
cmp byte [ecx + 0x67], 0
mov eax, dword [ebx + 0x38]
cmove eax, edx
push 0x10
push 1
mov dword [ebx + 0x38], eax
call dword [fcn.00401044]
mov edx, eax
add esp, 8
mov dword [ebx + 4], edx
test edx, edx
jne 0x4c0ed1
push 0x408138
push edi
call fcn.004ab2d0
mov eax, 0x1b
jmp 0x4c1011
mov ecx, dword [ebx]
lea eax, [edx + 8]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
push edx
xor edx, edx
lea eax, [esp + 0x44]
cmp byte [ebx + 0x47], dl
push 0
cmove eax, edx
push eax
mov eax, dword [0x4eed0c]
push edx
push edx
push dword [ebx + 0x38]
mov eax, dword [eax + 0x18]
push dword [ecx + 0x10]
push edx
push ecx
call eax
mov esi, eax
cmp esi, 0x90312
je 0x4c0f8d
push dword [ebx + 4]
call dword [fcn.00401038]
add esp, 4
mov dword [ebx + 4], 0
lea eax, [esp + 0xfc]
push 0x100
push eax
push esi
call fcn.00493420
push eax
cmp esi, 0x80090300
je 0x4c0f75
cmp esi, 0x80090322
je 0x4c0f5d
push 0x4085d4
push edi
call fcn.004ab2d0
add esp, 0x18
mov eax, 0x23
jmp 0x4c1014
push 0x40860c
push edi
call fcn.004ab2d0
add esp, 0x18
mov eax, 0x3c
jmp 0x4c1014
push 0x4085d4
push edi
call fcn.004ab2d0
add esp, 0x18
mov eax, 0x1b
jmp 0x4c1014
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x38]
push edi
push dword [eax + 4]
call fcn.004aa8d0
mov ecx, dword [0x4eed0c]
add esp, 0x14
mov esi, eax
push dword [esp + 0x30]
mov ecx, dword [ecx + 0x40]
call ecx
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x28]
jne 0x4c0fea
cmp eax, esi
jne 0x4c0fea
mov dword [ebx + 0x40], 0
xor eax, eax
mov word [ebx + 0x44], 0
mov byte [ebx + 0x46], 0
mov byte [ebx + 0x34], 0
mov dword [ebp + 4], 1
jmp 0x4c1014
push eax
push esi
push 0x408640
push edi
call fcn.004ab2d0
add esp, 0x10
mov eax, 0x23
jmp 0x4c1014
push 0x408508
push edi
call fcn.004ab2d0
mov eax, 0x4d
add esp, 8
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed9d4
add esp, 0x1f0
ret