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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [ecx + 8]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 0
movdqa xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], 0
push edi
mov edi, edx
mov edx, dword [ecx]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
test esi, esi
je 0x4c909d
xor eax, eax
cmp dword [esi], 0x40
cmovge esi, eax
mov dword [ebp + 0xc], esi
test byte [edx + 0x40], 0x20
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x58], esi
je 0x4c90af
and eax, 0xfbff
mov dword [esp + 0x20], eax
mov eax, dword [edi]
cmp eax, 0x40
jle 0x4c90d2
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.0045ca50
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
and ecx, 0x40
mov dword [esp + 0x40], ecx
mov ecx, 1
cmovne eax, ecx
mov ecx, edx
mov dword [esp + 0x2c], eax
push 0
lea edi, [eax + eax*4]
shl edi, 4
add edi, 0x2e7
and edi, 0xfffffff8
lea eax, [edi + 0x48]
push eax
call fcn.0045a000
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c9123
lea ecx, [edi + 0x48]
push ecx
push 0
push eax
call fcn.00509d10
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x45], 0
je 0x4c913c
mov edx, eax
call fcn.00459d00
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov byte [eax + 0x2b], cl
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x40], 0xffffffff
mov dword [eax + 0x3c], 0xffffffff
mov dword [eax + 8], esi
call fcn.00479930
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 0x44]
mov dword [esp + 0x50], ecx
push 0x48
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x24]
mov word [ecx + 0x24], ax
mov eax, dword [ebp + 0x18]
mov word [ecx + 0x22], ax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1ac]
mov dword [ecx + 0x38], eax
lea eax, [ecx + 0x148]
add ecx, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ecx
lea eax, [ecx + 0x38]
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x148]
mov dword [edx], 0
mov edx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ecx + 0x18]
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.004c3b90
mov eax, dword [esp + 0x34]
xor edi, edi
add esp, 4
cmp dword [eax + 0xc], edi
jle 0x4c92bb
xor esi, esi
cmp dword [esp + 0x2c], 0
je 0x4c927c
mov eax, dword [eax + 0x14]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov edx, dword [esi + eax]
mov byte [esp + 0x84], 2
mov dword [esp + 0x74], 0x48eba0
mov dword [esp + 0x78], 0x48ecb0
mov dword [esp + 0x88], 0
test edx, edx
je 0x4c927c
lea ecx, [esp + 0x70]
call fcn.0048aa60
cmp byte [esp + 0x84], 0
je 0x4c92a7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x10
mov edx, dword [eax + 0x15c]
push dword [eax + 0x34]
mov edx, dword [edx + esi]
call fcn.004925d0
mov eax, dword [esp + 0x38]
add esp, 8
mov eax, dword [eax + 0x14]
or word [eax + esi + 0x14], 4
mov eax, dword [esp + 0x30]
inc edi
add esi, 0x30
cmp edi, dword [eax + 0xc]
jl 0x4c9218
mov esi, dword [ebp + 0xc]
cmp dword [esp + 0x2c], 0
jne 0x4c92e3
test esi, esi
je 0x4c92cf
mov ecx, dword [esp + 0x10]
mov al, byte [esi]
mov byte [ecx + 0x26], al
test dword [esp + 0x20], 0x400
mov eax, dword [esp + 0x10]
je 0x4c92e7
mov byte [eax + 0x2a], 1
jmp 0x4c92e7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
xor edi, edi
cmp dword [ecx], edi
jle 0x4c9325
lea esi, [ecx + 8]
mov ecx, dword [eax + 0x44]
lea edx, [eax + 0x44]
mov eax, dword [esi + 0x30]
push dword [esp + 0x30]
mov dword [edx + ecx*4 + 4], eax
inc dword [edx]
mov edx, esi
mov ecx, dword [esp + 0x18]
call fcn.004c3f10
mov eax, dword [esp + 0x20]
inc edi
add esp, 4
add esi, 0x50
cmp edi, dword [eax]
mov eax, dword [esp + 0x10]
jl 0x4c92f4
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov esi, dword [ecx + 0xc]
dec esi
js 0x4c9347
mov edx, ecx
mov ecx, edi
push esi
call fcn.004c3310
mov ecx, dword [esp + 0x34]
add esp, 4
dec esi
jns 0x4c9333
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x45], 0
jne 0x4c93ee
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 0x10]
and eax, 0x400
mov dword [esp + 0x4c], eax
je 0x4c9399
push esi
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.004c46e0
mov edi, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4c9385
mov byte [edi + 0x2a], 1
jmp 0x4c939d
cmp dword [ebp + 0xc], 0
jne 0x4c939d
mov eax, 0x200
mov dword [edi + 8], esi
or word [edi + 0x24], ax
jmp 0x4c939d
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x2c], 1
jne 0x4c93b1
lea ecx, [esp + 0x50]
call fcn.004c8e90
test eax, eax
jne 0x4c9412
lea ecx, [esp + 0x50]
call fcn.004c7b30
test eax, eax
jne 0x4c93ee
xor edx, edx
mov ecx, edi
call fcn.004c85f0
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x45], 0
jne 0x4c93ee
cmp dword [edi + 8], 0
je 0x4c941c
movzx edx, word [edi + 0x20]
mov ecx, edi
inc dx
call fcn.004c85f0
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x45], 0
je 0x4c9416
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
mov dword [edx + 0x1ac], eax
mov edx, ecx
mov ecx, dword [esp + 0x24]
call fcn.004c5c00
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
cmp dword [edi + 8], 0
jne 0x4c9433
test dword [ecx + 0x18], 0x20000
je 0x4c9433
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x44], 0
jne 0x4c93ee
cmp byte [ecx + 0x45], 0
jne 0x4c93ee
cmp byte [edi + 0x2b], 2
jb 0x4c9561
test esi, esi
je 0x4c9561
mov eax, 0x400
test word [ecx + 0x40], ax
jne 0x4c9561
mov edx, esi
lea ecx, [edi + 0x44]
call fcn.004c3ea0
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], eax
test edx, edx
je 0x4c9496
lea ecx, [edi + 0x44]
call fcn.004c3ea0
mov esi, dword [esp + 0x38]
or esi, eax
or dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
jmp 0x4c949a
mov esi, dword [esp + 0x38]
cmp byte [edi + 0x2b], 2
jb 0x4c9561
mov edx, dword [edi + 4]
jmp 0x4c94b0
mov al, byte [edi + 0x2b]
mov byte [esp + 0xf], al
movzx eax, al
add eax, 9
lea eax, [eax + eax*4]
add eax, eax
mov ecx, dword [edi + eax*8]
movzx eax, byte [ecx + 0x10]
lea eax, [eax + eax*4]
add eax, eax
test byte [edx + eax*8 + 0x2c], 8
je 0x4c9561
cmp word [esp + 0x4c], 0
jne 0x4c94ea
test dword [ecx + 0x24], 0x1000
je 0x4c9561
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov ecx, edi
mov dword [esp + 0x48], eax
and ecx, esi
and eax, dword [esp + 0x34]
or ecx, eax
jne 0x4c955d
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea esi, [eax + eax*2]
shl esi, 4
add esi, edx
cmp edx, esi
jae 0x4c953b
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, edi
and eax, dword [esp + 0x48]
or ecx, eax
je 0x4c952e
mov eax, dword [edx]
test byte [eax + 4], 1
je 0x4c9537
add edx, 0x30
cmp edx, esi
jb 0x4c9516
jmp 0x4c953b
cmp edx, esi
jb 0x4c955d
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0xf]
dec dword [esp + 0x2c]
dec al
mov esi, dword [esp + 0x38]
mov edx, dword [edi + 4]
mov byte [edi + 0x2b], al
cmp al, 2
jae 0x4c94b0
jmp 0x4c9561
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
movsx eax, word [edi + 0x20]
add dword [ecx + 0x1ac], eax
test byte [esp + 0x20], 4
je 0x4c95dd
mov edx, dword [edi + 0x320]
mov ecx, dword [edx + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x4c9599
test dword [esp + 0x20], 0x2000
je 0x4c95dd
test ecx, 0x400
jne 0x4c95dd
mov esi, dword [esp + 0x1c]
test eax, eax
sete al
inc al
mov byte [edi + 0x28], al
mov eax, dword [esi + 0x18]
test byte [eax + 0x2a], 0x20
jne 0x4c95e1
test cl, 0x40
je 0x4c95e1
mov eax, dword [esp + 0x3c]
test dword [esp + 0x20], 0x2000
movzx eax, al
mov dword [esp + 0x4c], 8
cmovne eax, dword [esp + 0x4c]
and ecx, 0xffffffbf
mov dword [esp + 0x3c], eax
mov dword [edx + 0x24], ecx
jmp 0x4c95e1
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x4c987a
lea eax, [edi + 0x320]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], eax
jmp 0x4c9600
movzx eax, byte [eax - 0x14]
add esi, 8
mov edi, 0xfff0bdc0
lea eax, [eax + eax*4]
shl eax, 4
add eax, esi
mov dword [esp + 0x34], eax
mov esi, dword [eax + 0x10]
mov dword [esp + 0x44], esi
mov edx, dword [esi + 0x40]
test edx, edx
je 0x4c964c
mov eax, dword [esp + 0x24]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x4c964c
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
cmp dword [eax], edx
je 0x4c964c
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x4c9640
mov edx, dword [esp + 0x28]
mov cl, byte [esi + 0x2a]
mov eax, dword [edx]
mov dword [esp + 0x48], eax
test cl, 2
jne 0x4c97c7
cmp dword [esi + 0xc], 0
jne 0x4c97c7
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x4c96b0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c968c
mov ecx, dword [esp + 0x24]
cmp dword [eax], ecx
je 0x4c968c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4c9681
mov ecx, dword [esp + 0x18]
mov edx, 0x98
push 0xfffffffffffffff6
push eax
mov eax, dword [esp + 0x3c]
push 0
push 0
push dword [eax + 0x30]
call fcn.00479660
add esp, 0x14
jmp 0x4c97c3
test cl, 0x10
jne 0x4c97c7
test al, 0x40
jne 0x4c97ae
test byte [esp + 0x20], 0x10
jne 0x4c97ae
mov edx, dword [esp + 0x10]
mov ecx, 0x36
cmp byte [edx + 0x28], 0
je 0x4c96ea
mov eax, dword [esp + 0x34]
mov ecx, 0x37
mov eax, dword [eax + 0x30]
mov dword [edx + 0x3c], eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [eax + 0x30]
push edi
call fcn.004a53c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x28], 0
jne 0x4c978b
cmp word [esi + 0x22], 0x40
jge 0x4c978b
test byte [esi + 0x2a], 0x20
jne 0x4c978b
mov eax, dword [esp + 0x34]
xor esi, esi
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov eax, edx
or eax, ecx
je 0x4c973d
lea ecx, [ecx]
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x4c9730
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp byte [ecx + 0x45], 0
je 0x4c9759
push esi
mov edx, 0xfffffff2
call fcn.00479ca0
add esp, 4
jmp 0x4c978b
mov eax, dword [eax + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4c9784
mov ecx, dword [esp + 0x18]
mov edx, eax
push 0xfffffffffffffff2
push esi
call fcn.00479ec0
add esp, 8
jmp 0x4c978b
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x4c97c3
mov eax, dword [ecx + 0x20]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + ecx*4 - 0x11], dl
jmp 0x4c97c3
push dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.00496810
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
test dword [ecx + 0x24], 0x200
je 0x4c980d
mov eax, dword [esp + 0x44]
mov esi, dword [ecx + 0x1c]
mov ecx, 0x36
mov dword [esp + 0x38], ecx
test byte [eax + 0x2a], 0x20
je 0x4c9968
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x4c9968
cmp word [esp + 0x40], 0
je 0x4c9968
mov eax, dword [edx - 0x3c]
mov dword [edx - 0x38], eax
mov esi, dword [esp + 0x14]
test edi, edi
js 0x4c985d
mov eax, dword [esi + 0x1a0]
mov ecx, edi
test eax, eax
cmovne esi, eax
mov eax, 1
shl eax, cl
mov edx, dword [esi + 0x154]
test edx, eax
jne 0x4c985d
or eax, edx
mov edx, edi
mov dword [esi + 0x154], eax
add edx, edx
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*8 + 0xc]
mov eax, dword [eax]
mov dword [esi + edi*4 + 0x158], eax
cmp edi, 1
jne 0x4c985d
mov ecx, esi
call fcn.0049c8d0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
add eax, 0x50
dec dword [esp + 0x4c]
mov dword [esp + 0x28], eax
jne 0x4c9600
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x45], 0
jne 0x4c93ee
or ecx, 0xffffffff
or edx, 0xffffffff
xor edi, edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x2c], edi
jle 0x4c9ac3
mov esi, dword [esp + 0x10]
add esi, 0x30c
jmp 0x4c98c0
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x4c9903
lea eax, [esi - 0x2c]
push eax
movzx eax, byte [esi]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [eax + eax*4]
add ecx, 8
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.004c4900
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp byte [eax + 0x45], 0
jne 0x4c93ee
push dword [esp + 0x20]
movzx eax, byte [esi]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esi - 0x2c]
push edi
push eax
call fcn.004bfb10
mov eax, dword [esp + 0x28]
mov edx, edi
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x50]
push eax
call fcn.004c05e0
mov ecx, dword [esi - 0x14]
inc edi
mov dword [esp + 0x54], eax
add esp, 0x18
mov eax, dword [esp + 0x10]
add esi, 0x50
mov dword [esp + 0x4c], edx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x3c]
cmp edi, dword [esp + 0x2c]
jl 0x4c98c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x28], 0
je 0x4c99a8
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x4c998f
cmp eax, esi
je 0x4c998f
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x4c9983
mov eax, dword [esp + 0x10]
mov ecx, 0x37
mov dword [esp + 0x38], ecx
mov dword [eax + 0x40], edx
mov eax, dword [esp + 0x28]
mov dword [eax - 0x38], edx
jmp 0x4c99f2
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4c99ce
cmp word [esp + 0x40], 0
je 0x4c99ce
test dword [esp + 0x20], 0x1000
mov edx, eax
je 0x4c99e3
mov ecx, 0x35
mov dword [esp + 0x38], ecx
jmp 0x4c99e3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x48]
lea eax, [edx + 1]
mov dword [ecx + 0x48], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov dword [eax - 0x38], edx
test ecx, ecx
je 0x4c980d
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x34]
cmp dword [eax + 0x58], ecx
mov ecx, dword [esp + 0x38]
jg 0x4c9a2a
push edi
push dword [esp + 0x48]
push edx
mov edx, ecx
mov ecx, dword [esp + 0x24]
call fcn.004791e0
add esp, 0xc
jmp 0x4c9a6b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc eax
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 4]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], edi
mov byte [eax], cl
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov edx, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0047a030
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x24]
test al, 0xf
je 0x4c9811
test eax, 0x8002
jne 0x4c9811
mov eax, dword [esp + 0x10]
test byte [eax + 0x24], 1
jne 0x4c9811
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
cmp byte [eax + 0x45], 0
jne 0x4c9811
mov eax, dword [edx + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 4]
mov byte [eax + ecx*4 - 0x11], 2
jmp 0x4c9811
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret