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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x6c]
push esi
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov byte [esp + 0xb], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
test ebx, ebx
je 0x4c6764
xor eax, eax
cmp dword [ebx], 0x40
setge al
dec eax
and ebx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x70], ebx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], ebx
test byte [esi + 0x4c], 0x10
je 0x4c6778
and edx, 0xfeff
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], edx
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
cmp ecx, 0x40
jle 0x4c67a3
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.00493e20
add esp, 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x58
ret
mov eax, edx
and eax, 0x20
mov dword [esp + 0x24], eax
je 0x4c67b7
mov ecx, 1
mov dword [esp + 0xc], ecx
imul eax, ecx, 0x58
push ebp
push edi
push 0
mov dword [esp + 0x44], eax
lea edi, [eax + 0x2f7]
and edi, 0xfffffff8
lea eax, [edi + 0x48]
push eax
push esi
call fcn.00491d60
add esp, 0xc
mov ebp, eax
cmp byte [esi + 0x51], 0
mov dword [esp + 0x3c], ebp
je 0x4c6800
test ebp, ebp
je 0x4c70e1
push ebp
push esi
call fcn.00491cd0
add esp, 8
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 0x14], 0xffffffff
mov byte [ebp + 0x2c], al
mov eax, dword [ecx + 0x38]
dec eax
mov dword [ecx + 0x38], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x20]
mov word [ebp + 0x28], ax
mov eax, dword [esp + 0x84]
mov word [ebp + 0x2a], ax
mov eax, dword [ecx + 0x84]
lea ecx, [ebp + 0x2f0]
mov dword [ebp + 0x24], eax
xor eax, eax
mov dword [ebp + 0x2d], eax
mov dword [ebp + 0x31], eax
mov dword [ebp + 0x35], eax
mov dword [ebp + 0x39], eax
mov dword [ebp + 0x3d], eax
mov dword [ebp + 0x41], eax
mov dword [ebp + 0x45], eax
mov dword [ebp + 0x49], eax
mov word [ebp + 0x4d], ax
mov byte [ebp + 0x4f], al
mov eax, dword [esp + 0x40]
add eax, 0x48
push eax
push 0
push ecx
call sub.MSVCRT.dll_memset
mov dword [esp + 0x58], ebp
lea ecx, [edi + ebp]
mov dword [esp + 0x64], ecx
lea eax, [ebp + 0x50]
mov dword [esp + 0x5c], eax
lea edi, [ebp + 0x50]
mov dword [esp + 0x40], eax
lea edx, [ebp + 0x1e8]
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
lea eax, [edi + 0x18]
mov dword [edx + 4], 0
push 0x2c
push esi
push edi
mov dword [esp + 0x58], edx
mov dword [edi], ebp
mov byte [edi + 9], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], eax
call fcn.004ca140
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x4c693f
test ebx, ebx
je 0x4c6917
mov al, byte [ebx]
mov byte [ebp + 0x2d], al
test dword [esp + 0x20], 0x100
je 0x4c6925
mov byte [ebp + 0x2f], 1
mov ebx, dword [esp + 0x6c]
push str.SCAN_CONSTANT_ROW
push 0
push ebx
call fcn.004bfdb0
mov eax, dword [esp + 0x7c]
add esp, 0xc
jmp 0x4c697f
mov esi, dword [esp + 0x70]
xor edi, edi
mov ebp, dword [esp + 0x40]
add esi, 8
mov ebx, dword [esp + 0x6c]
mov ecx, dword [ebp + 4]
push dword [esp + 0x34]
mov eax, dword [esi + 0x2c]
push esi
mov dword [ebp + ecx*4 + 8], eax
inc dword [ebp + 4]
push ebx
call fcn.004ca1a0
mov eax, dword [esp + 0x7c]
inc edi
add esp, 0xc
add esi, 0x48
cmp edi, dword [eax]
jl 0x4c6950
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov esi, dword [edi + 0xc]
dec esi
js 0x4c6997
push esi
push edi
push eax
call fcn.0045d0e0
mov eax, dword [esp + 0x7c]
add esp, 0xc
dec esi
jns 0x4c6985
mov edi, dword [esp + 0x1c]
cmp byte [edi + 0x51], 0
jne 0x4c70cb
mov ecx, dword [esp + 0x50]
xor ebx, ebx
cmp dword [ecx + 0xc], ebx
jle 0x4c6a02
xor edi, edi
mov esi, dword [ecx + 0x14]
add esi, edi
test byte [esi + 0xa], 2
jne 0x4c69f5
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x4c69f5
cmp dword [esp + 0x14], eax
je 0x4c69d9
push dword [esi]
call fcn.0045f030
add esp, 4
test eax, eax
je 0x4c69f1
push 0x10
push dword [ebp + 0x20]
push dword [esi]
push dword [esp + 0x78]
call fcn.00497630
add esp, 0x10
or word [esi + 0xa], 4
mov ecx, dword [esp + 0x50]
inc ebx
add edi, 0x30
cmp ebx, dword [ecx + 0xc]
jl 0x4c69b2
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x7c]
and eax, 0x100
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
je 0x4c6a48
push ebx
lea eax, [ebp + 0x50]
push eax
push dword [esp + 0x78]
push esi
call fcn.00476b00
add esp, 0x10
test eax, eax
je 0x4c6a35
mov byte [ebp + 0x2f], 1
jmp 0x4c6a48
cmp dword [esp + 0x78], 0
jne 0x4c6a48
mov eax, pe_nt_image_headers32
mov dword [ebp + 8], ebx
or word [ebp + 0x28], ax
cmp dword [esp + 0x14], 1
jne 0x4c6a60
lea eax, [esp + 0x4c]
push eax
call fcn.004db6e0
add esp, 4
test eax, eax
jne 0x4c6aac
lea eax, [esp + 0x4c]
push eax
call fcn.004d7910
add esp, 4
test eax, eax
jne 0x4c70c7
push eax
push ebp
call fcn.004da650
add esp, 8
cmp byte [edi + 0x51], 0
jne 0x4c70c7
cmp dword [ebp + 8], 0
je 0x4c6ab2
mov ax, word [ebp + 0x34]
inc ax
movzx eax, ax
push eax
push ebp
call fcn.004da650
add esp, 8
cmp byte [edi + 0x51], 0
jne 0x4c70c7
cmp dword [ebp + 8], 0
jne 0x4c6acd
mov eax, dword [edi + 0x20]
and eax, 0x1000
or eax, 0
je 0x4c6acd
mov dword [ebp + 0x48], 0xffffffff
mov dword [ebp + 0x4c], 0xffffffff
cmp dword [esi + 0x24], 0
jne 0x4c70c7
cmp byte [edi + 0x51], 0
jne 0x4c70c7
cmp byte [ebp + 0x2c], 2
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
jb 0x4c6ca0
test ebx, ebx
je 0x4c6ca0
mov eax, 0x100
test word [edi + 0x4c], ax
jne 0x4c6ca0
push ebx
lea esi, [ebp + 0x1e8]
push esi
call fcn.004c9e10
mov ecx, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x38], edx
mov edi, eax
mov dword [esp + 0x78], edi
mov ebx, edx
test ecx, ecx
je 0x4c6b4c
push ecx
push esi
call fcn.004c9e10
or edi, eax
add esp, 8
or ebx, edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x38], ebx
movzx esi, byte [ebp + 0x2c]
dec esi
mov dword [esp + 0x30], esi
cmp esi, 1
jl 0x4c6ca0
imul eax, esi, 0x58
add eax, 0x348
add eax, ebp
mov dword [esp + 0x34], eax
lea esp, [esp]
mov ebx, dword [eax - 0x10]
movzx eax, byte [ebx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [ebp + 4]
lea eax, [eax + ecx*8]
add eax, 8
mov dword [esp + 0x48], eax
test byte [eax + 0x24], 8
je 0x4c6c87
cmp word [esp + 0x44], 0
jne 0x4c6ba6
test dword [ebx + 0x24], 0x1000
je 0x4c6c87
mov eax, dword [ebx + 8]
mov ecx, eax
mov edx, dword [ebx + 0xc]
and ecx, edi
mov dword [esp + 0x3c], eax
mov eax, edx
and eax, dword [esp + 0x38]
or ecx, eax
mov dword [esp + 0x40], edx
jne 0x4c6c87
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x14]
mov esi, edx
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
shl edi, 4
add edi, edx
cmp esi, edi
jae 0x4c6c14
mov edi, edi
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x40]
or ecx, eax
je 0x4c6c07
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x4c6c10
mov ecx, dword [esp + 0x48]
movsx eax, word [eax + 0x24]
cmp eax, dword [ecx + 0x2c]
jne 0x4c6c10
add esi, 0x30
cmp esi, edi
jb 0x4c6be0
jmp 0x4c6c14
cmp esi, edi
jb 0x4c6c7f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
not eax
and dword [esp + 0x24], eax
not ecx
and dword [esp + 0x28], ecx
cmp edx, edi
jae 0x4c6c4c
lea esp, [esp]
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [ebx + 8]
and eax, dword [ebx + 0xc]
or ecx, eax
je 0x4c6c45
or word [edx + 0xa], 4
add edx, 0x30
cmp edx, edi
jb 0x4c6c30
movzx ecx, byte [ebp + 0x2c]
mov esi, dword [esp + 0x30]
lea eax, [ecx - 1]
cmp esi, eax
je 0x4c6c76
sub ecx, esi
imul eax, ecx, 0x58
sub eax, 0x58
push eax
mov eax, dword [esp + 0x38]
push eax
add eax, 0xffffffa8
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec byte [ebp + 0x2c]
dec dword [esp + 0x14]
jmp 0x4c6c83
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
dec esi
sub eax, 0x58
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
cmp esi, 1
jge 0x4c6b70
mov ecx, dword [ebp]
movsx eax, word [ebp + 0x34]
mov ebx, dword [esp + 0x20]
add dword [ecx + 0x84], eax
test bl, 4
je 0x4c6d1b
mov eax, dword [ebp + 0x338]
mov ecx, dword [eax + 0x24]
mov edx, ecx
shr edx, 0xc
and edx, 1
jne 0x4c6ce7
test bl, 8
je 0x4c6d1b
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], edx
jne 0x4c6d1b
test ecx, 0x2000
je 0x4c6ce7
test bl, 0x10
je 0x4c6d1b
test edx, edx
mov edx, dword [esp + 0x70]
sete al
inc al
mov byte [ebp + 0x2e], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x24], 0x80
jne 0x4c6d1f
test cl, 0x40
je 0x4c6d1f
test bl, 8
je 0x4c6d0d
mov byte [esp + 0x13], 8
mov eax, dword [ebp + 0x338]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
jmp 0x4c6d1f
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4c6ff9
lea ebx, [ebp + 0x338]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], ebx
lea esp, [esp]
movzx eax, byte [ebx - 0x14]
mov edi, 0xfff0bdc0
lea esi, [eax*8 + 1]
add esi, eax
mov ebx, dword [edx + esi*8 + 0x10]
lea esi, [edx + esi*8]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], esi
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4c6d7c
mov eax, dword [edx + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x4c6d7c
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4c6d74
test byte [ebx + 0x24], 2
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
jne 0x4c6ec3
cmp dword [ebx + 0xc], 0
jne 0x4c6ec3
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x4c6dce
push 0xfffffffffffffff4
push ebx
push edx
call fcn.004a3410
add esp, 8
push eax
push 0
push 0
push dword [esi + 0x2c]
push 0xa5
push dword [esp + 0x30]
call fcn.004b8aa0
add esp, 0x1c
jmp 0x4c6ebf
cmp dword [ebx + 0x38], 0
jne 0x4c6ec3
test al, 0x40
jne 0x4c6eab
cmp word [esp + 0x2c], 0
jne 0x4c6eab
cmp byte [ebp + 0x2e], 0
mov ecx, 0x60
je 0x4c6e02
mov eax, dword [esi + 0x2c]
mov ecx, 0x61
mov dword [ebp + 0x14], eax
push ecx
push ebx
push edi
push dword [esi + 0x2c]
push dword [esp + 0x7c]
call fcn.004a7ef0
add esp, 0x14
cmp byte [ebp + 0x2e], 0
jne 0x4c6e95
cmp word [ebx + 0x2a], 0x40
jge 0x4c6e95
test byte [ebx + 0x24], 0xe0
jne 0x4c6e95
mov edx, dword [esi + 0x38]
mov ecx, edx
mov eax, dword [esi + 0x3c]
xor esi, esi
or ecx, eax
je 0x4c6e4d
lea esp, [esp]
shrd edx, eax, 1
inc esi
shr eax, 1
mov ecx, edx
or ecx, eax
jne 0x4c6e40
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
je 0x4c6e67
push esi
push 0xfffffffffffffffd
push eax
call fcn.00462150
add esp, 0xc
jmp 0x4c6e95
mov eax, dword [ecx + 0x6c]
mov edx, dword [esp + 0x18]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4c6e8e
push 0xfffffffffffffffd
push esi
push eax
push edx
call fcn.004d0560
add esp, 0x10
jmp 0x4c6e95
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfd
mov al, byte [esp + 0x13]
movzx eax, al
push eax
push dword [esp + 0x1c]
call fcn.004b8fb0
add esp, 8
jmp 0x4c6ebf
push dword [ebx]
push 0
push dword [ebx + 0x1c]
push edi
push dword [esp + 0x7c]
call fcn.004b4a90
add esp, 0x14
mov ecx, dword [esp + 0x30]
test dword [ecx + 0x24], 0x200
je 0x4c6fa8
test byte [ebx + 0x24], 0x80
mov edx, 0x60
mov esi, dword [ecx + 0x20]
je 0x4c6eff
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x2c]
jne 0x4c6f03
test ax, ax
je 0x4c6f03
mov ebx, dword [esp + 0x78]
mov eax, dword [ebx - 0x44]
mov dword [ebx - 0x40], eax
jmp 0x4c6fac
mov eax, dword [esp + 0x2c]
cmp byte [ebp + 0x2e], 0
mov ecx, dword [esp + 0x84]
je 0x4c6f36
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x4c6f2c
mov edi, edi
cmp eax, esi
je 0x4c6f2c
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x4c6f20
mov edx, 0x61
mov dword [ebp + 0x18], ecx
jmp 0x4c6f53
test ecx, ecx
je 0x4c6f46
test ax, ax
je 0x4c6f46
mov edx, 0x5f
jmp 0x4c6f53
mov ebx, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x28], eax
mov ebx, dword [esp + 0x78]
push edi
mov dword [ebx - 0x40], ecx
push dword [esi + 0x2c]
push ecx
push edx
push dword [esp + 0x28]
call fcn.004b8a40
push esi
mov esi, dword [esp + 0x84]
push esi
call fcn.004c3470
mov eax, dword [esp + 0x4c]
add esp, 0x1c
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x4c6fb0
test eax, 0x88002
jne 0x4c6fb0
test byte [ebp + 0x28], 1
jne 0x4c6fb0
cmp byte [ebp + 0x2f], 2
je 0x4c6fb0
push 2
push dword [esp + 0x1c]
call fcn.004b8fb0
add esp, 8
jmp 0x4c6fb0
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x6c]
test edi, edi
js 0x4c6fe0
mov edx, dword [esi + 0x74]
test edx, edx
jne 0x4c6fbd
mov edx, esi
mov esi, dword [edx + 0x54]
mov eax, 1
mov ecx, edi
shl eax, cl
test esi, eax
jne 0x4c6fe0
or eax, esi
mov dword [edx + 0x54], eax
cmp edi, 1
jne 0x4c6fe0
push edx
call fcn.004a8230
add esp, 4
mov edx, dword [esp + 0x70]
add ebx, 0x58
dec dword [esp + 0x40]
mov dword [esp + 0x78], ebx
jne 0x4c6d40
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x6c]
mov dword [ebp + 0x38], eax
cmp byte [esi + 0x51], 0
jne 0x4c70c7
xor ebx, ebx
test ecx, ecx
jle 0x4c70bd
lea edi, [ebp + 0x324]
mov eax, dword [edi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x4c7063
mov ecx, dword [esp + 0x70]
lea eax, [edi - 0x34]
push eax
movzx eax, byte [edi]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ecx + eax*8]
push eax
lea eax, [ebp + 0x50]
push eax
push dword [esp + 0x80]
call fcn.004594d0
add esp, 0x18
cmp byte [esi + 0x51], 0
jne 0x4c70c7
push dword [esp + 0x20]
lea esi, [edi - 0x34]
push esi
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.004c9b40
push dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x38]
push esi
mov eax, dword [ecx + 0x6c]
push ebx
push ebp
push ecx
push dword [esp + 0x94]
mov dword [edi - 0x14], eax
call fcn.004c7280
mov ecx, dword [edi - 0x1c]
inc ebx
mov esi, dword [esp + 0x48]
add esp, 0x2c
add edi, 0x58
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [ebp + 0x1c], ecx
cmp ebx, dword [esp + 0x14]
jl 0x4c7021
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0x58
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebp + 0x24]
push ebp
push dword [esp + 0x20]
mov dword [ebx + 0x84], eax
call fcn.004d7450
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x58
ret