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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
xor eax, eax
push ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x14], edx
test eax, eax
je 0x4af716
cmp dword [eax], 0x40
jl 0x4af716
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x68], eax
test byte [edx + 0x3c], 0x20
je 0x4af727
and dword [ebp + 0x1c], 0xfbff
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp edx, 0x40
jle 0x4af74a
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.004483c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
and eax, 0x40
mov dword [esp + 0x44], eax
je 0x4af761
mov ebx, 1
mov dword [esp + 0x18], ebx
jmp 0x4af767
mov dword [esp + 0x18], edx
mov ebx, edx
mov esi, dword [esp + 0x14]
lea ebx, [ebx + ebx*4]
shl ebx, 4
add ebx, 0x2e7
xor eax, eax
and ebx, 0xfffffff8
lea ecx, [ebx + 0x48]
push eax
push ecx
call fcn.00445af0
mov edi, eax
add esp, 8
mov dword [esp + 0x50], edi
test edi, edi
je 0x4af7a2
lea eax, [ebx + 0x48]
push eax
push 0
push edi
call fcn.005de050
add esp, 0xc
mov ecx, esi
cmp byte [ecx + 0x41], 0
je 0x4af7ba
mov eax, edi
call fcn.00445870
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
or eax, 0xffffffff
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
mov al, byte [esp + 0x18]
mov byte [edi + 0x29], al
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
call fcn.00464180
mov cx, word [ebp + 0x1c]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov word [edi + 0x22], cx
mov edx, dword [esi + 0x1a4]
mov dword [edi + 0x38], edx
mov dword [esp + 0x60], edi
lea esi, [edi + 0x148]
mov dword [esp + 0x64], esi
lea eax, [edi + ebx]
mov dword [esp + 0x6c], eax
lea ecx, [eax + 0x38]
mov dword [eax + 0x30], ecx
xor ebx, ebx
mov dword [eax + 0x24], ebx
xor edx, edx
mov word [eax + 0x28], dx
mov ecx, 3
mov word [eax + 0x2c], cx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x44], ebx
push 0x48
push eax
lea edx, [esi + 0x18]
push esi
mov dword [esp + 0x68], esi
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], edx
call fcn.004aa420
mov ecx, dword [esp + 0x70]
add esp, 0xc
mov dword [esp + 0x38], ebx
cmp dword [ecx + 0xc], ebx
jle 0x4af922
cmp dword [esp + 0x18], 0
je 0x4af8e1
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + ebx]
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
push edx
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x90], 2
mov dword [esp + 0x7c], 0x478140
mov dword [esp + 0x80], 0x478250
call fcn.004745a0
add esp, 8
cmp byte [esp + 0x88], 0
je 0x4af909
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x34]
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + ebx]
push 0x10
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0047b8a0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x14]
lea eax, [ecx + ebx + 0x14]
add esp, 0x10
or word [eax], 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
inc eax
add ebx, 0x30
mov dword [esp + 0x38], eax
cmp eax, dword [ecx + 0xc]
jl 0x4af86c
cmp dword [esp + 0x18], 0
jne 0x4af942
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4af935
mov dl, byte [eax]
mov byte [edi + 0x24], dl
test dword [ebp + 0x1c], 0x400
je 0x4af942
mov byte [edi + 0x28], 1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x4af971
mov edx, eax
add edx, 0x38
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x30]
mov edx, dword [edi + 0x44]
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
add dword [esp + 0x30], 0x50
mov dword [edi + edx*4 + 0x48], ebx
inc dword [edi + 0x44]
inc ecx
cmp ecx, dword [eax]
jl 0x4af954
mov ebx, dword [esi + 0xc]
dec ebx
js 0x4af988
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push ecx
call fcn.004a9aa0
add esp, 0xc
dec ebx
jns 0x4af977
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x41], 0
jne 0x4affee
mov eax, dword [ebp + 0x1c]
and eax, 0x400
mov dword [esp + 0x48], eax
je 0x4af9d4
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.004aafb0
add esp, 0xc
test eax, eax
je 0x4af9c2
mov byte [edi + 0x28], 1
jmp 0x4af9d4
cmp dword [ebp + 0x14], 0
jne 0x4af9d4
mov ecx, 0x200
or word [edi + 0x22], cx
mov dword [edi + 8], ebx
cmp dword [esp + 0x18], 1
jne 0x4af9e8
lea ecx, [esp + 0x60]
call fcn.004af4d0
test eax, eax
jne 0x4afa3c
lea edx, [esp + 0x60]
push edx
call fcn.004ae380
add esp, 4
test eax, eax
jne 0x4affee
push eax
push edi
call fcn.004aece0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp byte [eax + 0x41], 0
jne 0x4affee
cmp dword [edi + 8], 0
je 0x4afa42
mov cx, word [edi + 0x20]
inc cx
movzx edx, cx
push edx
push edi
call fcn.004aece0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp byte [eax + 0x41], 0
jne 0x4affee
cmp dword [edi + 8], 0
jne 0x4afa58
mov ecx, dword [esp + 0x14]
test dword [ecx + 0x18], 0x20000
je 0x4afa58
or eax, 0xffffffff
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
jne 0x4affee
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x41], 0
jne 0x4affee
cmp byte [edi + 0x29], 2
jb 0x4afb7f
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4afb7f
mov edx, dword [esp + 0x14]
mov ecx, 0x400
test word [edx + 0x3c], cx
jne 0x4afb7f
push eax
lea esi, [edi + 0x44]
push esi
call fcn.004aa710
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
add esp, 8
mov dword [esp + 0x3c], edx
test eax, eax
je 0x4afaca
push eax
push esi
call fcn.004aa710
or dword [esp + 0x40], eax
add esp, 8
or dword [esp + 0x3c], edx
cmp byte [edi + 0x29], 2
jb 0x4afb7f
mov bl, byte [edi + 0x29]
movzx eax, bl
lea ecx, [eax + eax*4 + 0x2d]
add ecx, ecx
mov eax, dword [edi + ecx*8]
movzx ecx, byte [eax + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 4]
add edx, edx
test byte [ecx + edx*8 + 0x2c], 8
je 0x4afb7f
cmp word [esp + 0x48], 0
jne 0x4afb0b
test dword [eax + 0x24], 0x1000
je 0x4afb7f
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, edx
and eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
and ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], edx
or eax, ecx
jne 0x4afb7f
mov eax, dword [esp + 0x64]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
cmp ecx, esi
jae 0x4afb6d
mov ebx, dword [esp + 0x34]
jmp 0x4afb47
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x28]
and eax, edx
mov edx, dword [ecx + 0x2c]
and edx, ebx
or eax, edx
je 0x4afb5d
mov edx, dword [ecx]
test byte [edx + 4], 1
je 0x4afb66
add ecx, 0x30
cmp ecx, esi
jb 0x4afb43
jmp 0x4afb6a
cmp ecx, esi
jb 0x4afb7f
mov bl, byte [edi + 0x29]
dec dword [esp + 0x18]
dec bl
mov byte [edi + 0x29], bl
cmp bl, 2
jae 0x4afad4
movsx ecx, word [edi + 0x20]
mov eax, dword [edi]
add dword [eax + 0x1a4], ecx
test byte [ebp + 0x1c], 4
je 0x4afbb4
mov eax, dword [edi + 0x320]
test dword [eax + 0x24], 0x1000
je 0x4afbb4
mov edx, dword [ebp + 0xc]
mov byte [edi + 0x26], 1
mov ecx, dword [edx + 0x18]
test byte [ecx + 0x2a], 0x20
jne 0x4afbb4
and dword [eax + 0x24], 0xffffffbf
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4aff19
lea edx, [edi + 0x320]
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov edi, edi
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 0x14]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax*4]
add ecx, ecx
mov ebx, dword [edx + ecx*8 + 0x18]
lea eax, [edx + ecx*8 + 8]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x24], eax
mov eax, 0xfff0bdc0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x4afc4a
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x14]
xor eax, eax
mov edx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
test esi, esi
jle 0x4afc4a
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x48]
add ecx, 0xc
cmp dword [ecx], ebx
je 0x4afc3e
inc eax
add ecx, 0x10
rol edx, 1
cmp eax, esi
jl 0x4afc30
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
mov cl, byte [ebx + 0x2a]
mov dword [esp + 0x38], esi
test cl, 2
jne 0x4afd6b
cmp dword [ebx + 0xc], 0
jne 0x4afd6b
mov edx, dword [esi + 0x24]
mov dword [esp + 0x48], edx
test edx, 0x400
je 0x4afcb8
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4afc8f
mov edx, dword [esp + 0x14]
cmp dword [eax], edx
je 0x4afc8f
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4afc80
mov esi, dword [esp + 0x1c]
push 0xfffffffffffffff6
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x30]
push 0
push 0
push ecx
push 0x98
call fcn.00463f80
mov esi, dword [esp + 0x50]
add esp, 0x18
jmp 0x4afd6b
test cl, 0x10
jne 0x4afd6b
test byte [esp + 0x48], 0x40
jne 0x4afd56
test byte [ebp + 0x1c], 0x10
jne 0x4afd56
cmp byte [edi + 0x26], 0
mov ecx, 0x36
je 0x4afcf0
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x30]
mov ecx, 0x37
mov dword [edi + 0x3c], edx
mov edx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x30]
push ecx
push edx
mov eax, ebx
call fcn.0048df90
add esp, 0x10
cmp byte [edi + 0x26], 0
jne 0x4afd6b
cmp word [ebx + 0x22], 0x40
jge 0x4afd6b
test byte [ebx + 0x2a], 0x20
jne 0x4afd6b
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov edx, eax
xor edi, edi
or edx, ecx
je 0x4afd3a
shrd eax, ecx, 1
shr ecx, 1
mov edx, eax
inc edi
or edx, ecx
jne 0x4afd2d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x20]
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.004646a0
mov edi, dword [esp + 0x54]
add esp, 4
jmp 0x4afd6b
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x1c]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.0047fdf0
add esp, 0x10
test dword [esi + 0x24], 0x200
je 0x4afebd
test byte [ebx + 0x2a], 0x20
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], 0x36
je 0x4afdb5
mov edx, dword [ecx + 0x34]
and dl, 3
cmp dl, 2
jne 0x4afdb5
cmp word [esp + 0x44], 0
je 0x4afdb5
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0x3c]
mov dword [esp + 0x28], 0
jmp 0x4afe14
cmp byte [edi + 0x26], 0
mov esi, dword [ebp + 0x20]
je 0x4afde9
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x4afddc
lea esp, [esp]
cmp eax, ecx
je 0x4afddc
mov eax, dword [eax + 0x14]
inc esi
test eax, eax
jne 0x4afdd0
mov dword [esp + 0x28], 0x37
mov dword [edi + 0x40], esi
jmp 0x4afe14
test esi, esi
je 0x4afe08
cmp word [esp + 0x44], 0
je 0x4afe08
test dword [ebp + 0x1c], 0x1000
je 0x4afe14
mov dword [esp + 0x28], 0x35
jmp 0x4afe14
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x44]
lea ecx, [esi + 1]
mov dword [eax + 0x44], ecx
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x20]
mov dword [edx - 0x38], esi
je 0x4afebd
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x24], ecx
cmp dword [edx + 0x54], ebx
jg 0x4afe51
push eax
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4afe83
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
inc dword [eax + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov cl, byte [esp + 0x28]
mov edx, dword [esp + 0x24]
mov byte [eax], cl
mov ecx, dword [esp + 0x2c]
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp + 8]
call fcn.00464780
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x24]
test al, 0xf
je 0x4afebd
test eax, 0x8002
jne 0x4afebd
test byte [edi + 0x22], 1
jne 0x4afebd
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4afebd
mov eax, dword [eax + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
js 0x4aff0a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x4afed4
mov ebx, eax
mov edx, dword [ebx + 0x14c]
mov eax, dword [esp + 0x30]
test edx, eax
jne 0x4aff0a
or eax, edx
mov edx, dword [ebx]
mov dword [ebx + 0x14c], eax
mov edx, dword [edx + 0x10]
mov eax, ecx
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov edx, dword [eax]
mov dword [ebx + ecx*4 + 0x150], edx
cmp ecx, 1
jne 0x4aff0a
call fcn.00485ba0
add dword [esp + 0x20], 0x50
dec dword [esp + 0x4c]
jne 0x4afbd0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x2c], ecx
cmp byte [edx + 0x41], 0
jne 0x4affee
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
cmp dword [esp + 0x18], ebx
jle 0x4affe5
lea esi, [edi + 0x30c]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x4aff93
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
lea ecx, [esi - 0x2c]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push eax
movzx eax, byte [esi]
lea ecx, [eax + eax*4]
add ecx, ecx
lea eax, [edx + ecx*8 + 8]
mov ecx, dword [esp + 0x68]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.004ab1a0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x41], 0
jne 0x4affee
movzx edx, byte [esi]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ebx
lea edx, [esi - 0x2c]
push eax
call fcn.004a6ab0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push ebx
push edi
mov dword [esi - 0xc], edx
call fcn.004a7400
mov dword [esp + 0x74], edx
mov edx, dword [esi - 0x14]
inc ebx
add esp, 0x20
add esi, 0x50
mov dword [esp + 0x50], eax
mov dword [edi + 0x30], edx
cmp ebx, dword [esp + 0x18]
jl 0x4aff4e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
push edi
mov dword [ecx + 0x1a4], eax
call fcn.004ac440
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret