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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x60]
mov ebp, dword [ebp + 8]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x13], bl
mov dword [esp + 0x30], ebp
cmp ebp, 0xffffffff
jl 0x4c2043
cmp ebp, dword [edi + 4]
jl 0x4c2048
call fcn.004ca25c
mov esi, dword [esp + 0x50]
cmp dword [esi], 0xe06d7363
jne 0x4c234d
cmp dword [esi + 0x10], 3
jne 0x4c2162
cmp dword [esi + 0x14], 0x19930520
je 0x4c2081
cmp dword [esi + 0x14], 0x19930521
je 0x4c2081
cmp dword [esi + 0x14], 0x19930522
jne 0x4c2162
cmp dword [esi + 0x1c], ebx
jne 0x4c2162
call fcn.004c7b5c
cmp dword [eax + 0x88], ebx
je 0x4c2391
call fcn.004c7b5c
mov esi, dword [eax + 0x88]
call fcn.004c7b5c
push 1
push esi
mov byte [esp + 0x34], 1
mov eax, dword [eax + 0x8c]
mov dword [esp + 0x58], eax
call fcn.004ccde7
pop ecx
pop ecx
test eax, eax
jne 0x4c20cd
call fcn.004ca25c
cmp dword [esi], 0xe06d7363
jne 0x4c2100
cmp dword [esi + 0x10], 3
jne 0x4c2100
cmp dword [esi + 0x14], 0x19930520
je 0x4c20f6
cmp dword [esi + 0x14], 0x19930521
je 0x4c20f6
cmp dword [esi + 0x14], 0x19930522
jne 0x4c2100
cmp dword [esi + 0x1c], ebx
jne 0x4c2100
call fcn.004ca25c
call fcn.004c7b5c
cmp dword [eax + 0x94], ebx
je 0x4c2170
call fcn.004c7b5c
mov ebp, dword [eax + 0x94]
call fcn.004c7b5c
push ebp
push esi
mov dword [eax + 0x94], ebx
call fcn.004c252e
pop ecx
pop ecx
test al, al
jne 0x4c216c
cmp dword [ebp], ebx
jle 0x4c2399
mov edi, ebx
mov ecx, dword [ebp + 4]
push 0x52494c
mov ecx, dword [edi + ecx + 4]
call fcn.004c129b
test al, al
jne 0x4c239e
inc ebx
add edi, 0x10
cmp ebx, dword [ebp]
jl 0x4c213b
jmp 0x4c2399
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
jmp 0x4c2174
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
cmp dword [esi], 0xe06d7363
jne 0x4c2351
cmp dword [esi + 0x10], 3
jne 0x4c2351
cmp dword [esi + 0x14], 0x19930520
je 0x4c21a9
cmp dword [esi + 0x14], 0x19930521
je 0x4c21a9
cmp dword [esi + 0x14], 0x19930522
jne 0x4c2351
cmp dword [edi + 0xc], ebx
jbe 0x4c22d5
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x74]
push edi
call fcn.004bd096
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x30]
cmp ecx, edx
jae 0x4c22d5
mov ebx, dword [esp + 0x54]
add eax, 0x10
mov dword [esp + 0x20], eax
lea edi, [eax - 0x10]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x60]
cmp dword [eax - 0x10], ebp
jg 0x4c22bf
cmp ebp, dword [eax - 0xc]
jg 0x4c22bf
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [eax - 4]
mov dword [esp + 0x28], edx
test edx, edx
jle 0x4c22bb
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4c226d
push dword [esi + 0x1c]
push dword [ecx]
push dword [esp + 0x1c]
call fcn.004c2a4a
add esp, 0xc
test eax, eax
jne 0x4c2281
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
dec eax
add ecx, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
test eax, eax
jg 0x4c223c
mov edx, dword [esp + 0x28]
add dword [esp + 0x14], 0x10
dec edx
mov dword [esp + 0x28], edx
test edx, edx
jle 0x4c22b3
mov eax, dword [esp + 0x38]
jmp 0x4c222a
push dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push dword [esp + 0x70]
mov byte [esp + 0x1b], 1
push dword [esp + 0x70]
push dword [esp + 0x48]
push dword [eax]
push dword [esp + 0x28]
push edi
push dword [esp + 0x78]
push dword [esp + 0x70]
push ebx
push esi
call fcn.004c1f4a
add esp, 0x2c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
inc ecx
add eax, 0x14
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp ecx, edx
jb 0x4c21e5
xor ebx, ebx
cmp byte [esp + 0x64], 0
je 0x4c22e6
push 1
push esi
call fcn.004c1c84
pop ecx
pop ecx
cmp byte [esp + 0x13], 0
jne 0x4c2378
mov eax, dword [edi]
and eax, 0x1fffffff
cmp eax, 0x19930521
jb 0x4c2378
cmp dword [edi + 0x1c], 0
je 0x4c2378
push dword [edi + 0x1c]
push esi
call fcn.004c252e
pop ecx
pop ecx
test al, al
jne 0x4c2378
call fcn.004c7b5c
call fcn.004c7b5c
call fcn.004c7b5c
mov dword [eax + 0x88], esi
call fcn.004c7b5c
cmp dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x50]
push esi
mov dword [eax + 0x8c], ecx
jne 0x4c23d5
push dword [esp + 0x58]
jmp 0x4c23d9
mov eax, dword [esp + 0x58]
cmp dword [edi + 0xc], ebx
jbe 0x4c2378
cmp byte [esp + 0x64], bl
jne 0x4c2399
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push ebp
push edi
push dword [esp + 0x6c]
push eax
push dword [esp + 0x6c]
push esi
call fcn.004c23fa
add esp, 0x20
call fcn.004c7b5c
cmp dword [eax + 0x94], ebx
je 0x4c2391
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
jmp fcn.004ca25c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
call fcn.004ca294
push 1
push esi
call fcn.004c1c84
pop ecx
pop ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x54], str.bad_exception
push eax
lea ecx, [esp + 0x44]
call fcn.004c0f4a
push 0x4f52c4
lea eax, [esp + 0x44]
mov dword [esp + 0x44], vtable.std::bad_exception.0
push eax
call fcn.004bcd17
push dword [esp + 0x70]
call fcn.004bd148
push 0xffffffffffffffff
push edi
push dword [esp + 0x64]
push dword [esp + 0x60]
call fcn.004c2890
add esp, 0x10
push dword [edi + 0x1c]
call fcn.004c1f0a
int3