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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
push edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], ebx
test eax, eax
je 0x51879c
cmp dword [eax], 0x40
jl 0x51879c
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x50], eax
test byte [ebx + 0x40], 0x20
je 0x5187ad
and dword [ebp + 0x1c], 0xfeff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x5187cf
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.004b2660
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
and eax, 0x20
mov dword [esp + 0x34], eax
je 0x5187e6
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x5187ec
mov dword [esp + 0x18], ecx
mov eax, ecx
lea esi, [eax + eax*4]
shl esi, 4
lea eax, [esi + 0x2f7]
and eax, 0xfffffff8
mov dword [esp + 0x3c], eax
add eax, 0x48
push 0
push eax
mov eax, ebx
call fcn.004afe20
add esp, 8
cmp byte [ebx + 0x45], 0
mov edi, eax
je 0x518827
mov ecx, ebx
call fcn.004afaf0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [edi + 8], eax
or eax, 0xffffffff
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov al, byte [esp + 0x18]
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x18]
mov byte [edi + 0x2e], al
mov eax, dword [esp + 0x1c]
mov dword [edi], ebx
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], edx
call fcn.004cd7c0
mov cx, word [ebp + 0x1c]
mov dx, word [ebp + 0x20]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov word [edi + 0x2c], cx
mov word [edi + 0x14], dx
mov eax, dword [ebx + 0x84]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2f], eax
mov dword [edi + 0x33], eax
mov dword [edi + 0x37], eax
mov dword [edi + 0x3b], eax
mov dword [edi + 0x3f], eax
mov dword [edi + 0x43], eax
mov dword [edi + 0x47], eax
mov dword [edi + 0x4b], eax
add esi, 0x48
push esi
mov byte [edi + 0x4f], al
lea eax, [edi + 0x2f0]
push 0
push eax
call fcn.0052e300
mov ecx, dword [esp + 0x48]
lea eax, [edi + ecx]
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], edi
lea esi, [edi + 0x50]
mov dword [esp + 0x58], esi
lea edx, [eax + 0x38]
mov dword [eax + 0x30], edx
xor ecx, ecx
mov word [eax + 0x28], cx
mov dword [eax + 0x24], ecx
mov edx, 3
mov word [eax + 0x2c], dx
mov dword [edi + 0x1ec], ecx
add esp, 0xc
lea ebx, [edi + 0x1e8]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x10]
push 0x47
push ecx
lea eax, [esi + 0x18]
push esi
mov dword [esi], edi
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], eax
call fcn.005131a0
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x51892c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51891f
mov dl, byte [eax]
mov byte [edi + 0x2f], dl
test dword [ebp + 0x1c], 0x100
je 0x51892c
mov byte [edi + 0x33], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
mov dword [esp + 0x20], 0
jle 0x518979
mov ecx, eax
add ecx, 8
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 0x30]
mov dword [ebx + edx*4 + 8], ecx
mov edx, dword [ebp + 8]
inc dword [ebx + 4]
push esi
push eax
push edx
call fcn.00513510
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0x34], 0x50
inc eax
add esp, 0xc
cmp eax, dword [ecx]
mov dword [esp + 0x20], eax
jl 0x518945
mov eax, dword [esi + 0xc]
sub eax, 1
mov dword [esp + 0x28], eax
js 0x51899e
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
call fcn.005127b0
add esp, 0xc
sub dword [esp + 0x28], 1
jns 0x518985
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x45], 0
jne 0x5190d8
mov ecx, dword [esp + 0x4c]
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x20], 0
jle 0x518a17
mov dword [esp + 0x28], 0
mov esi, dword [ecx + 0x14]
add esi, dword [esp + 0x28]
mov edx, dword [esi + 0x28]
or edx, dword [esi + 0x2c]
jne 0x518a00
cmp dword [esp + 0x18], edx
je 0x5189e6
mov ecx, dword [esi]
call fcn.00518700
test eax, eax
je 0x518a00
mov eax, dword [edi + 0x24]
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
push 0x10
push eax
push ecx
push edx
call fcn.004e5b10
add esp, 0x10
or word [esi + 0xa], 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x28], 0x30
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
jl 0x5189c6
mov eax, dword [ebp + 0x1c]
and eax, 0x100
mov dword [esp + 0x38], eax
je 0x518a58
mov esi, dword [ebp + 0x18]
push esi
lea eax, [edi + 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00513c70
add esp, 0xc
test eax, eax
je 0x518a46
mov byte [edi + 0x33], 1
jmp 0x518a58
cmp dword [ebp + 0x14], 0
jne 0x518a58
mov ecx, 0x80
or word [edi + 0x2c], cx
mov dword [edi + 8], esi
cmp dword [esp + 0x18], 1
jne 0x518a6c
lea ecx, [esp + 0x48]
call fcn.00518510
test eax, eax
jne 0x518ac0
lea edx, [esp + 0x48]
push edx
call fcn.00517230
add esp, 4
test eax, eax
jne 0x5190d8
push eax
push edi
call fcn.00517bc0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp byte [eax + 0x45], 0
jne 0x5190d8
cmp dword [edi + 8], 0
je 0x518ac6
mov cx, word [edi + 0x48]
inc cx
movzx edx, cx
push edx
push edi
call fcn.00517bc0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp byte [eax + 0x45], 0
jne 0x5190d8
cmp dword [edi + 8], 0
jne 0x518adc
mov ecx, dword [esp + 0x14]
test dword [ecx + 0x18], 0x1000
je 0x518adc
or eax, 0xffffffff
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
jne 0x5190d8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x45], 0
jne 0x5190d8
cmp byte [edi + 0x2e], 2
jb 0x518bfb
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x518bfb
mov edx, dword [esp + 0x14]
mov ecx, 0x400
test word [edx + 0x40], cx
jne 0x518bfb
push eax
push ebx
call fcn.005134b0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
add esp, 8
mov dword [esp + 0x44], edx
test eax, eax
je 0x518b4b
push eax
push ebx
call fcn.005134b0
or dword [esp + 0x48], eax
add esp, 8
or dword [esp + 0x44], edx
cmp byte [edi + 0x2e], 2
jb 0x518bfb
mov al, byte [edi + 0x2e]
movzx eax, al
lea ecx, [eax + eax*4]
shl ecx, 4
mov eax, dword [ecx + edi + 0x2e0]
movzx ecx, byte [eax + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 4]
shl edx, 4
test byte [edx + ecx + 0x2c], 8
je 0x518bfb
cmp word [esp + 0x38], 0
jne 0x518b8d
test dword [eax + 0x24], 0x1000
je 0x518bfb
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov eax, edx
and eax, dword [esp + 0x40]
mov ecx, esi
and ecx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
or eax, ecx
jne 0x518bfb
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea ebx, [ebx + ebx*2]
shl ebx, 4
add ebx, ecx
cmp ecx, ebx
jae 0x518be7
jmp 0x518bc4
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + 0x28]
and eax, edx
mov edx, dword [ecx + 0x2c]
and edx, esi
or eax, edx
je 0x518bda
mov edx, dword [ecx]
test byte [edx + 4], 1
je 0x518be3
add ecx, 0x30
cmp ecx, ebx
jb 0x518bc0
jmp 0x518be7
cmp ecx, ebx
jb 0x518bfb
mov al, byte [edi + 0x2e]
dec dword [esp + 0x18]
dec al
mov byte [edi + 0x2e], al
cmp al, 2
jae 0x518b55
movsx ecx, word [edi + 0x48]
mov eax, dword [edi]
mov dl, byte [ebp + 0x1c]
add dword [eax + 0x84], ecx
test dl, 4
je 0x518c5a
mov esi, dword [edi + 0x330]
mov ecx, dword [esi + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x518c2f
test dl, 8
je 0x518c5a
test ecx, 0x400
jne 0x518c5a
test eax, eax
sete al
inc al
mov byte [edi + 0x31], al
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
test byte [eax + 0x24], 0x20
jne 0x518c5a
test cl, 0x40
je 0x518c5a
test dl, 8
je 0x518c54
mov byte [esp + 0x12], 8
and ecx, 0xffffffbf
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x518ffd
lea ecx, [edi + 0x330]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x20]
movzx eax, byte [edx - 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
shl eax, 4
mov esi, dword [eax + ecx + 0x18]
mov edx, dword [esi + 0x48]
lea eax, [eax + ecx + 8]
mov ebx, 0xfff0bdc0
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], ebx
test edx, edx
je 0x518cd0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
xor ebx, ebx
mov dword [esp + 0x28], ebx
test ecx, ecx
jle 0x518cd0
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
cmp dword [eax], edx
je 0x518ccc
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x518cc0
mov dword [esp + 0x28], ebx
test byte [esi + 0x24], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
jne 0x518e83
cmp dword [esi + 0xc], 0
jne 0x518e83
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x518d82
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x518d12
mov edx, dword [ebx]
cmp edx, dword [esp + 0x14]
je 0x518d12
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x518d03
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x30]
mov esi, dword [esp + 0x1c]
push 0
push 0
push eax
push 0x9c
push esi
call fcn.004cd400
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x45], 0
jne 0x518e83
test eax, eax
jge 0x518d47
mov eax, dword [esi + 0x88]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
cmp byte [eax + edx*4 + 1], 0
lea ecx, [eax + edx*4]
je 0x518d6b
push ebx
push esi
mov eax, 0xfffffff4
call fcn.004cde50
add esp, 8
jmp 0x518e83
test ebx, ebx
je 0x518e83
mov dword [ecx + 0x10], ebx
mov byte [ecx + 1], 0xf4
inc dword [ebx + 0xc]
jmp 0x518e83
cmp dword [esi + 0x38], 0
jne 0x518e83
test al, 0x40
jne 0x518e6e
cmp word [esp + 0x34], 0
jne 0x518e6e
cmp byte [edi + 0x31], 0
mov eax, 0x68
je 0x518dba
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov eax, 0x69
mov dword [edi + 0x18], edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x30]
push ebx
push ecx
push edx
mov eax, esi
call fcn.004f7050
add esp, 0x10
cmp byte [edi + 0x31], 0
jne 0x518e4d
cmp word [esi + 0x2a], 0x40
jge 0x518e4d
test byte [esi + 0x24], 0x20
jne 0x518e4d
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov esi, ecx
xor eax, eax
or esi, edx
je 0x518e04
shrd ecx, edx, 1
shr edx, 1
mov esi, ecx
inc eax
or esi, edx
jne 0x518df7
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x518e1c
push 0xfffffffffffffffd
call fcn.004cdcf0
add esp, 4
jmp 0x518e51
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x58]
dec ecx
lea ecx, [ecx + ecx*4]
cmp byte [edx + ecx*4 + 1], 0
lea ecx, [edx + ecx*4]
je 0x518e44
push eax
push esi
mov eax, 0xfffffffd
call fcn.004cde50
add esp, 8
jmp 0x518e51
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
jmp 0x518e51
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x518e83
movzx cx, byte [esp + 0x12]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov word [eax + edx*4 - 0x12], cx
jmp 0x518e83
mov ecx, dword [esi]
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp + 8]
push ecx
push 0
push edx
push ebx
call fcn.004e9be0
add esp, 0x10
mov eax, dword [esp + 0x38]
test dword [eax + 0x24], 0x200
je 0x518fbc
mov edx, dword [esp + 0x40]
test byte [edx + 0x24], 0x20
mov ecx, eax
mov esi, dword [ecx + 0x20]
mov ecx, 0x68
je 0x518ec4
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x518ec4
cmp word [esp + 0x34], 0
je 0x518ec4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0x3c]
xor ecx, ecx
jmp 0x518f18
cmp byte [edi + 0x31], 0
je 0x518ef6
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x20]
test ecx, ecx
je 0x518eec
jmp 0x518ee0
cmp ecx, esi
je 0x518eec
mov ecx, dword [ecx + 0x14]
inc eax
test ecx, ecx
jne 0x518ee0
mov ecx, 0x69
mov dword [edi + 0x1c], eax
jmp 0x518f18
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x518f0c
cmp word [esp + 0x34], 0
je 0x518f0c
mov ecx, 0x67
jmp 0x518f18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
lea ebx, [eax + 1]
mov dword [edx + 0x28], ebx
mov edx, dword [esp + 0x20]
mov dword [edx - 0x38], eax
test ecx, ecx
je 0x518fbc
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esi + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
push eax
call fcn.004cd400
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 8]
add esp, 0x14
mov edx, ecx
push esi
push edx
call fcn.004eff80
add esp, 8
test eax, eax
je 0x518f80
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
je 0x518f69
push 0xfffffffffffffff7
call fcn.004cdcf0
add esp, 4
jmp 0x518f80
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4 - 0x14]
mov byte [ecx + 1], 0xf7
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x518fbc
test eax, 0x8002
jne 0x518fbc
test byte [edi + 0x2c], 1
jne 0x518fbc
cmp byte [edi + 0x33], 2
je 0x518fbc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x88]
test eax, eax
jle 0x518fbc
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x58]
mov ecx, 2
mov word [eax + edx*4 - 0x12], cx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x518fed
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
test eax, eax
jne 0x518fd0
mov eax, edx
mov ebx, dword [eax + 0x5c]
mov edx, 1
shl edx, cl
test ebx, edx
jne 0x518fed
or edx, ebx
mov dword [eax + 0x5c], edx
cmp ecx, 1
jne 0x518fed
call fcn.004ef7a0
add dword [esp + 0x20], 0x50
sub dword [esp + 0x3c], 1
jne 0x518c74
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x88]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x38], eax
cmp byte [ecx + 0x45], 0
jne 0x5190d8
or eax, 0xffffffff
xor ebx, ebx
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
jle 0x5190cf
lea esi, [edi + 0x31c]
mov edx, dword [esi + 0x14]
test dword [edx + 0x24], 0x4000
je 0x51907a
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea eax, [esi - 0x2c]
push eax
movzx eax, byte [esi]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
push edx
shl eax, 4
lea edx, [eax + ecx + 8]
push edx
lea eax, [edi + 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00513ea0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [ecx + 0x45], 0
jne 0x5190d8
mov edx, dword [ebp + 0x1c]
movzx eax, byte [esi]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esi - 0x2c]
call fcn.0050e7a0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x88]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push ebx
push edi
mov dword [esi - 0xc], eax
call fcn.0050f910
mov dword [esp + 0x60], eax
mov eax, dword [esi - 0x14]
inc ebx
add esp, 0x20
add esi, 0x50
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov dword [edi + 0x20], eax
jl 0x519035
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x28]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
push edi
mov dword [edx + 0x84], ecx
call fcn.00514f90
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret