Function at 0x4c2380
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx]
cmp ax, 0x40
jle 0x4c23bd
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.0047ae50
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi]
movsx edi, ax
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
lea ebx, [edi + 0x264]
mov ecx, ebx
mov dword [esp + 0xc], esi
call fcn.00479070
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4c23f2
push ebx
push 0
push esi
call fcn.004cc620
add esp, 0xc
mov edx, dword [esp + 0xc]
cmp byte [edx + 0x1e], 0
jne 0x4c28fa
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
mov edx, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x18], ecx
mov dword [esi], edx
call fcn.0048cb20
add edi, esi
push 0x104
mov dword [esi + 0x14], eax
mov ax, word [ebp + 0x18]
lea ebx, [edi + 0x160]
push 0
push ebx
mov dword [esp + 0x2c], edi
mov dword [esi + 0x1c], edi
mov word [esi + 4], ax
call fcn.004cc620
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [edi], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 0x14], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x44]
lea edx, [edi + 0x20]
push ecx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], edx
mov dword [esp + 0x48], 0x49c7f0
call fcn.00496f60
mov edx, dword [ebp + 0x10]
push 0x43
push edx
push edi
call fcn.004be9e0
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x4c24c2
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x4c24ac
mov eax, dword [ebp + 0x10]
call fcn.00499fa0
test eax, eax
je 0x4c24c2
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push 8
push ecx
push edx
push eax
call fcn.0049ccf0
add esp, 0x10
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp cx, word [eax]
mov dword [esp + 0x14], 0
jge 0x4c2528
add eax, 0x14
mov dword [esp + 0x24], eax
jmp 0x4c24e0
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx]
mov dword [ebx + edx*4 + 4], ecx
inc dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c2511
test byte [ecx + 0x22], 0x10
je 0x4c2511
mov ecx, dword [esp + 0x14]
mov eax, 1
xor edx, edx
call fcn.004e3140
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0xc]
movsx ecx, word [edx]
inc dword [esp + 0x14]
add eax, 0x38
cmp dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jl 0x4c24e0
mov ebx, dword [edi + 0x14]
sub ebx, 1
js 0x4c2543
mov edx, dword [ebp + 0xc]
push ebx
push edi
push edx
call fcn.004bf780
add esp, 0xc
sub ebx, 1
jns 0x4c2530
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x1e], 0
jne 0x4c28fa
mov ecx, dword [ebp + 0xc]
movsx ecx, word [ecx]
or eax, 0xffffffff
xor ebx, ebx
cmp ecx, ebx
lea edi, [esi + 0x20]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
jle 0x4c27ec
mov esi, dword [esp + 0x10]
fld qword [0x500508]
mov edi, dword [ebp + 0xc]
xor eax, eax
lea edx, [esi*8]
sub edx, esi
cmp esi, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x68]
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], esi
lea ebx, [edi + edx*8 + 8]
jge 0x4c2716
mov ecx, dword [esp + 0x2c]
mov eax, esi
shl eax, 6
lea edx, [eax + ecx + 0x5c]
mov dword [esp + 0x3c], edx
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
cmp dword [esp + 0x28], 0
mov dword [esp + 0x54], eax
je 0x4c2607
test eax, eax
jne 0x4c2712
mov edi, dword [esp + 0x20]
xor ecx, ecx
add edi, 0x160
cmp dword [edi], ecx
jle 0x4c2629
mov edx, dword [ebx + 0x18]
lea eax, [edi + 4]
cmp dword [eax], edx
je 0x4c2650
inc ecx
add eax, 4
cmp ecx, dword [edi]
jl 0x4c261d
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
and eax, ecx
and edx, edi
or eax, edx
jne 0x4c265e
cmp esi, dword [esp + 0x10]
jne 0x4c26f7
inc dword [esp + 0x10]
jmp 0x4c26f7
mov eax, 1
xor edx, edx
call fcn.004e3140
jmp 0x4c262d
cmp dword [esp + 0x14], 0
jne 0x4c2670
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4c2670
mov eax, dword [eax]
jmp 0x4c2672
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x4c269c
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x7c]
push edx
push eax
mov eax, dword [esp + 0x2c]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.004c0660
add esp, 0x20
jmp 0x4c26b6
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.004c07e0
add esp, 0x1c
cmp dword [esp + 0x28], 0
je 0x4c26cf
fld qword [esp + 0x68]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 0x41
jne 0x4c26f0
mov edx, dword [esp + 0x34]
mov ecx, 8
lea esi, [esp + 0x78]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 1
mov dword [esp + 0x38], edx
mov esi, edx
cmp dword [esp + 0x54], 0
jne 0x4c2712
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
add dword [esp + 0x3c], 0x40
inc esi
add ebx, 0x38
cmp esi, ecx
mov dword [esp + 0x34], esi
jl 0x4c25e8
mov eax, dword [esp + 0x58]
test eax, 0x1000000
je 0x4c2726
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x24], eax
mov edx, dword [esp + 0x60]
mov dword [edi], eax
mov esi, eax
and esi, 0xf0000
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
je 0x4c2756
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x14], ecx
inc dword [eax + 0x44]
jmp 0x4c275d
mov dword [edi + 0x14], 0xffffffff
mov ebx, dword [esp + 0x20]
xor ecx, ecx
add ebx, 0x160
cmp dword [ebx], ecx
jle 0x4c2794
mov eax, dword [esp + 0x38]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + edx*8 + 0x20]
lea eax, [ebx + 4]
cmp dword [eax], edx
je 0x4c28d6
inc ecx
add eax, 4
cmp ecx, dword [ebx]
jl 0x4c2784
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0xc]
not eax
and dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
not edx
and dword [esp + 0x44], edx
lea edx, [eax*8]
sub edx, eax
mov byte [edi + 0x28], al
mov eax, dword [ecx + edx*8 + 0x3c]
test eax, eax
je 0x4c27c7
test esi, esi
je 0x4c28e7
mov eax, dword [esp + 0x14]
movsx ecx, word [ecx]
inc eax
add edi, 0x40
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jl 0x4c2583
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x40], ebx
jne 0x4c28fa
mov edx, dword [esp + 0xc]
cmp byte [edx + 0x1e], 0
jne 0x4c28fa
mov eax, dword [esp + 0x24]
and eax, 0x4000000
je 0x4c281a
mov edx, dword [ebp + 0x14]
cmp edx, ebx
je 0x4c281a
mov dword [edx], ebx
test byte [ebp + 0x18], 4
je 0x4c282e
cmp eax, ebx
je 0x4c282e
and dword [edi], 0xff7fffff
mov byte [esi + 6], 1
push 0xffffffffffffffff
mov esi, ecx
call fcn.004a50f0
mov ecx, dword [ebp + 0xc]
xor eax, eax
add esp, 4
cmp ax, word [ecx]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jge 0x4c2cf6
mov edx, dword [ebp + 8]
cmp byte [edx + 0x1bc], 2
jne 0x4c2a3f
mov ebx, dword [esp + 0x18]
movzx eax, byte [ebx + 0x28]
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*8 + 0xc]
lea edi, [edx + ecx*8 + 8]
push eax
push str.TABLE__s
call fcn.0047a300
mov edi, dword [edi + 8]
add esp, 8
mov esi, eax
test edi, edi
je 0x4c28ae
mov eax, dword [esp + 0xc]
push edi
push esi
push str._s_AS__s
mov edi, esi
call fcn.0047a320
add esp, 0xc
mov esi, eax
mov eax, dword [ebx]
test eax, 0xf0000
je 0x4c2910
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0xc]
push edx
push esi
push str._s_WITH_INDEX__s
mov edi, esi
call fcn.0047a320
add esp, 0xc
jmp 0x4c2970
mov eax, 1
xor edx, edx
call fcn.004e3140
jmp 0x4c2798
mov eax, dword [eax]
mov edi, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
call fcn.0047ae50
add esp, 8
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
call fcn.004c22c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x10000000
je 0x4c292d
mov eax, dword [esp + 0xc]
push esi
push str._s_VIA_MULTI_INDEX_UNION
mov edi, esi
call fcn.0047a320
add esp, 8
jmp 0x4c2970
test eax, 0x3000
je 0x4c294a
mov eax, dword [esp + 0xc]
push esi
push str._s_USING_PRIMARY_KEY
mov edi, esi
call fcn.0047a320
add esp, 8
jmp 0x4c2970
test eax, 0x8000000
je 0x4c2972
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0xc]
push ecx
push edx
push esi
push str._s_VIRTUAL_TABLE_INDEX__d:_s
mov edi, esi
call fcn.0047a320
add esp, 0x10
mov esi, eax
test dword [ebx], 0x1000000
je 0x4c2990
mov eax, dword [esp + 0xc]
push esi
push str._s_ORDER_BY
mov edi, esi
call fcn.0047a320
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
jg 0x4c29bc
mov edi, ecx
call fcn.0048c980
test eax, eax
je 0x4c29ba
mov eax, 1
jmp 0x4c29ed
mov ecx, edi
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x73
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ecx + 0x6e], dl
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx]
test ebx, ebx
je 0x4c2a35
cmp byte [edi + 0x1e], 0
jne 0x4c2a35
test eax, eax
jge 0x4c2a08
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 0x10]
lea ebx, [ebx + eax*4]
movsx eax, byte [ebx + 1]
call fcn.0048cec0
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x4c2a2c
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x4c2a3f
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x4c2a3f
mov ecx, esi
or eax, 0xffffffff
call fcn.0048cec0
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
mov ebx, dword [esi + 0x44]
lea edi, [eax + edx*8 + 8]
mov eax, 0xfff0bdc0
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4c2a96
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x10], eax
test edx, edx
jle 0x4c2a96
mov ecx, dword [ecx + 8]
add ecx, 0xc
cmp dword [ecx], ebx
je 0x4c2a92
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x4c2a86
mov dword [esp + 0x10], eax
test byte [esi + 0x22], 2
jne 0x4c2cda
cmp dword [esi + 0x1c], 0
jne 0x4c2cda
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x4c2b94
mov esi, dword [esi + 0x34]
mov dword [esp + 0x20], esi
test esi, esi
je 0x4c2ada
mov eax, dword [esp + 0xc]
cmp dword [esi], eax
je 0x4c2ad6
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x4c2ac7
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 0x10], esi
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x30], ecx
jg 0x4c2aff
mov edi, ebx
call fcn.0048c980
test eax, eax
je 0x4c2aff
mov eax, 1
jmp 0x4c2b2c
mov eax, dword [ebx + 0x14]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x30]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x20
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebx + 0x6e], cl
mov eax, esi
mov esi, dword [ebx + 0x14]
mov edi, dword [ebx]
test esi, esi
je 0x4c2caa
cmp byte [edi + 0x1e], 0
jne 0x4c2caa
test eax, eax
jge 0x4c2b4b
mov eax, dword [ebx + 0xc]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [esi + edx*4 + 1]
mov ecx, dword [esi + edx*4 + 0x10]
lea esi, [esi + edx*4]
call fcn.0048cec0
cmp dword [esp + 0x20], 0
mov edi, dword [esp + 0x28]
mov dword [esi + 0x10], 0
jne 0x4c2b81
mov dword [esi + 0x10], 0
mov byte [esi + 1], 0
jmp 0x4c2c29
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
inc dword [eax + 0xc]
jmp 0x4c2c29
test ecx, 0x800000
jne 0x4c2c07
test byte [ebp + 0x18], 0x10
jne 0x4c2c07
mov ebx, dword [esp + 0x2c]
movzx ecx, byte [ebx + 6]
mov edx, dword [edi + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 0xd
push ecx
mov ecx, dword [ebp + 8]
push eax
push edx
mov eax, esi
call fcn.004a95f0
add esp, 0xc
cmp byte [ebx + 6], 0
jne 0x4c2c25
cmp dword [esi + 0xc], 0x40
jge 0x4c2c25
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x4c2bee
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x4c2be1
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xc]
push edx
dec eax
push ebx
mov ecx, 0xfffffff2
call fcn.0048cfa0
add esp, 8
jmp 0x4c2c29
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push eax
push 0
push ecx
push edx
call fcn.004a0280
mov edi, dword [esp + 0x38]
add esp, 0x10
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test dword [eax], 0xf0000
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x10], ecx
je 0x4c2cca
mov edx, dword [ebp + 8]
mov edi, eax
mov esi, dword [edi + 8]
push esi
push edx
call fcn.004a5520
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x14]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x14]
push esi
push eax
push 0xd
mov eax, ebx
call fcn.0048ca00
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx]
add esp, 0x18
test ecx, ecx
je 0x4c2cbc
cmp byte [edi + 0x1e], 0
jne 0x4c2cbc
test eax, eax
jge 0x4c2c82
mov eax, dword [ebx + 0xc]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.0048cec0
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x4c2cb3
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x4c2cca
mov edi, dword [esp + 0x28]
jmp 0x4c2c29
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x4c2cca
mov ecx, dword [esp + 0x24]
mov eax, 0xfffffff0
call fcn.0048cec0
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push eax
call fcn.004a50f0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
movsx edx, word [ecx]
add dword [esp + 0x18], 0x40
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x4c2850
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edi, dword [esp + 0x2c]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
xor ecx, ecx
or eax, 0xffffffff
or edx, 0xffffffff
xor esi, esi
cmp cx, word [ebx]
jge 0x4c2d45
lea ebx, [edi + 0x40]
lea esp, [esp]
push edx
mov edx, dword [ebp + 0x18]
push eax
push edx
mov ecx, esi
mov eax, edi
call fcn.004c13a0
mov ecx, dword [ebx]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp + 0xc]
movsx ecx, word [ecx]
inc esi
add esp, 0xc
add ebx, 0x40
cmp esi, ecx
jl 0x4c2d20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret