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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4e2040]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 4], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
push 0x18
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.004b21c0
mov esi, dword [ebp + 0xc]
add esp, 0xc
push 0x40
pop ecx
test esi, esi
je 0x49e83d
xor eax, eax
cmp dword [esi], ecx
cmovge esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, ecx
jle 0x49e85b
push ecx
push str.at_most__d_tables_in_a_join
push ebx
call fcn.00441b18
add esp, 0xc
jmp 0x49ebaf
test byte [ebp + 0x18], 0x20
push 1
pop ecx
cmovne eax, ecx
mov ecx, edi
mov dword [esp + 0x2c], eax
imul eax, eax, 0x60
push 0
mov dword [esp + 0x2c], eax
add eax, 0x2ff
and eax, 0xfffffff8
mov dword [esp + 0x48], eax
add eax, 0x50
push eax
call fcn.0043f1a0
mov edi, eax
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
cmp byte [eax + 0x57], 0
je 0x49e8ad
test edi, edi
je 0x49ebaf
mov edx, edi
mov ecx, eax
call fcn.0043eeff
jmp 0x49ebaf
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [edi], ebx
mov dword [edi + 8], esi
or dword [edi + 0x18], 0xffffffff
or dword [edi + 0x14], 0xffffffff
mov byte [edi + 0x2c], al
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x38], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov word [edi + 0x28], ax
mov eax, dword [ebp + 0x1c]
mov word [edi + 0x2a], ax
mov eax, dword [ebx + 0x8c]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x1c]
push 0x23
mov dword [edi + 0x10], eax
lea eax, [edi + 0x2d]
push 0
push eax
call fcn.004b21c0
mov eax, dword [esp + 0x34]
lea ecx, [edi + 0x2f8]
add esp, 0xc
add eax, 0x50
push eax
push 0
push ecx
call fcn.004b21c0
and dword [edi + 0x1f4], 0
lea edx, [edi + 0x50]
mov ecx, dword [esp + 0x50]
add esp, 0xc
add ecx, edi
mov dword [edi + 0x1f8], 0xffffff9d
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edi
lea eax, [ecx + 0x40]
mov dword [ecx + 0x38], eax
xor eax, eax
mov word [ecx + 0x30], ax
push 3
pop eax
mov word [ecx + 0x34], ax
xor eax, eax
mov dword [ecx + 0x2c], eax
lea ecx, [edi + 0x50]
mov byte [edx + 9], al
mov dword [edx + 4], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x14], eax
lea eax, [edx + 0x20]
mov dword [edx], edi
mov dword [edx + 0x10], 8
mov dword [edx + 0x18], eax
mov edx, dword [esp + 0xc]
push 0x2c
call fcn.0049938b
cmp dword [esp + 0x30], 0
pop ecx
jne 0x49e9c6
test esi, esi
je 0x49e99b
mov al, byte [esi]
mov byte [edi + 0x2d], al
test dword [ebp + 0x18], 0x100
je 0x49e9b4
mov eax, dword [esp + 0x24]
test byte [eax + 0x50], 0x10
jne 0x49e9b4
xor eax, eax
inc eax
mov byte [edi + 0x2f], al
push str.SCAN_CONSTANT_ROW
push 0
push ebx
call fcn.0045940c
add esp, 0xc
jmp 0x49ea0d
mov esi, dword [esp + 0x18]
and dword [esp + 0xc], 0
add esi, 8
mov ecx, dword [edi + 0x1f4]
mov edx, esi
mov eax, dword [esi + 0x2c]
mov dword [edi + ecx*4 + 0x1f8], eax
lea eax, [edi + 0x50]
inc dword [edi + 0x1f4]
mov ecx, ebx
push eax
call fcn.0049977f
mov eax, dword [esp + 0x10]
add esi, 0x48
pop ecx
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [ecx]
jl 0x49e9d2
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
lea edx, [edi + 0x50]
call fcn.00499755
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49ea31
cmp dword [eax + 0x3c], 0
je 0x49ea31
mov edx, eax
lea ecx, [edi + 0x50]
call fcn.0049948a
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x49eb9b
mov edx, dword [esp + 0x4c]
cmp dword [edx + 0x14], eax
jle 0x49eaf6
mov dword [esp + 0x1c], eax
mov esi, eax
mov ecx, dword [edx + 0x18]
add ecx, eax
mov dword [esp + 0xc], ecx
test byte [ecx + 0xa], 2
jne 0x49eae2
mov eax, dword [ecx + 0x28]
or eax, dword [ecx + 0x2c]
jne 0x49eade
cmp dword [esp + 0x2c], eax
je 0x49eac1
mov eax, dword [ecx]
push 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x64]
push 0
push eax
call fcn.004b21c0
xor eax, eax
mov dword [esp + 0x70], 0x49e415
inc eax
mov dword [esp + 0x74], 0x46ac5c
mov word [esp + 0x80], ax
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49eabd
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.00466c57
cmp word [esp + 0x74], 0
je 0x49eada
mov ecx, dword [esp + 0xc]
push 0x10
push dword [edi + 0x20]
push dword [ecx]
push ebx
call fcn.0046e269
mov eax, dword [esp + 0x1c]
add esp, 0x10
or word [eax + 0xa], 4
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
inc esi
add eax, 0x30
mov dword [esp + 0x1c], eax
cmp esi, dword [edx + 0x14]
jl 0x49ea4f
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
test ecx, 0x100
je 0x49eb4e
mov eax, dword [esp + 0x24]
test byte [eax + 0x50], 0x10
je 0x49eb1b
mov eax, 0xfeff
and ecx, eax
and word [edi + 0x28], ax
mov dword [ebp + 0x18], ecx
jmp 0x49eb4e
push dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea eax, [edi + 0x50]
push eax
mov ecx, ebx
call fcn.00499e19
pop ecx
pop ecx
test eax, eax
je 0x49eb3a
mov byte [edi + 0x2f], 1
jmp 0x49eb4e
test esi, esi
jne 0x49eb4e
mov eax, 0x80
or word [edi + 0x28], ax
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
cmp dword [esp + 0x2c], 1
jne 0x49eb62
lea ecx, [esp + 0x48]
call fcn.0049e230
test eax, eax
jne 0x49ebc3
lea ecx, [esp + 0x48]
call fcn.0049d20a
test eax, eax
jne 0x49eb9b
xor edx, edx
mov ecx, edi
call fcn.0049db45
mov esi, dword [esp + 0x24]
cmp byte [esi + 0x57], 0
jne 0x49eb9b
cmp dword [edi + 8], 0
je 0x49ebcd
movzx edx, word [edi + 0x34]
mov ecx, edi
inc dx
call fcn.0049db45
cmp byte [esi + 0x57], 0
je 0x49ebc7
mov eax, dword [edi + 0x24]
mov edx, edi
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x8c], eax
call fcn.0049af8c
xor eax, eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b0ce6
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
cmp dword [edi + 8], 0
jne 0x49ebe2
mov eax, dword [esi + 0x20]
and eax, 0x1000
or eax, 0
je 0x49ebe2
or dword [edi + 0x48], 0xffffffff
or dword [edi + 0x4c], 0xffffffff
cmp dword [ebx + 0x24], 0
jne 0x49eb9b
mov al, byte [edi + 0x2c]
or dword [esp + 0x3c], 0xffffffff
or dword [esp + 0x1c], 0xffffffff
cmp al, 2
jb 0x49ec49
cmp dword [esp + 0x10], 0
je 0x49ec39
mov eax, dword [ebp + 0x18]
xor ecx, ecx
and eax, 0x400
cmp cx, ax
jne 0x49ec39
test dword [esi + 0x50], 0x100
jne 0x49ec39
push ecx
push ecx
mov ecx, edi
call fcn.0049e43b
pop ecx
mov dword [esp + 0x40], eax
mov al, byte [edi + 0x2c]
mov dword [esp + 0x20], edx
pop ecx
movzx ecx, al
mov dword [esp + 0x2c], ecx
cmp al, 2
jb 0x49ec49
test dword [esi + 0x50], 0x80000
jne 0x49ec49
mov ecx, edi
call fcn.0049e5e0
mov ecx, dword [edi]
movsx eax, word [edi + 0x34]
and dword [esp + 0x30], 0
add dword [ecx + 0x8c], eax
mov eax, dword [ebp + 0x18]
test al, 4
je 0x49ecda
mov edx, dword [edi + 0x348]
mov ecx, dword [edx + 0x2c]
test ecx, 0x1000
jne 0x49eca6
and dword [esp + 0x30], 0
test al, 8
je 0x49ecda
mov eax, dword [esp + 0x18]
and dword [esp + 0x30], 0
mov eax, dword [eax + 0x18]
cmp byte [eax + 0x2b], 1
je 0x49ecda
test ecx, 0x2000
je 0x49eca0
and dword [esp + 0x30], 0
test byte [ebp + 0x18], 0x10
je 0x49ecda
test ecx, 0x1000
sete al
and dword [esp + 0x30], 0
inc al
mov byte [edi + 0x2e], al
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x49ecda
and dword [esp + 0x30], 0
test cl, 0x40
je 0x49ecda
mov eax, dword [ebp + 0x18]
and ecx, 0xffffffbf
and eax, 8
mov dword [edx + 0x2c], ecx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
test edx, edx
jle 0x49f096
lea eax, [edi + 0x348]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
jmp 0x49ecfa
mov esi, dword [esp + 0x24]
movzx eax, byte [eax - 0x14]
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x48
add ecx, 8
add eax, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [ecx + 0x3c]
mov ecx, esi
call fcn.004864ff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], edx
test dword [eax + 0x1c], 0x4000
jne 0x49edc0
mov cl, byte [eax + 0x2b]
cmp cl, 2
je 0x49edc0
test dword [edx + 0x2c], 0x400
je 0x49ed88
mov edx, eax
mov ecx, esi
call fcn.00493345
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x38]
mov edx, 0xad
push 0
push 0
push dword [eax + 0x2c]
call fcn.004591cc
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, eax
push 0xfffffffffffffff5
push esi
call fcn.00459979
pop ecx
pop ecx
jmp 0x49edb8
cmp cl, 1
je 0x49edc0
test byte [edx + 0x2c], 0x40
jne 0x49ed99
test byte [ebp + 0x18], 0x20
je 0x49ee0b
mov esi, dword [esp + 0x38]
test byte [esi + 0x24], 0x50
jne 0x49ee0f
push dword [eax]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push 0
push dword [eax + 0x14]
call fcn.00473c88
add esp, 0xc
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
test dword [edx + 0x2c], 0x200
je 0x49ef5f
test byte [eax + 0x1c], 0x80
mov edx, dword [edx + 0x20]
push 0x70
pop ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
je 0x49ee98
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
mov eax, dword [ebp + 0x18]
jne 0x49ee9b
test al, 0x20
je 0x49ee9b
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov esi, dword [eax - 0x4c]
jmp 0x49ef0a
mov esi, dword [esp + 0x38]
cmp byte [edi + 0x2e], 0
push 0x70
pop ecx
je 0x49ee25
mov eax, dword [esi + 0x2c]
push 0x71
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x38]
pop ecx
mov edx, dword [esi + 0x2c]
push ecx
push eax
push dword [esp + 0x14]
mov ecx, ebx
call fcn.0047ec81
add esp, 0xc
cmp byte [edi + 0x2e], 0
jne 0x49ee86
mov ecx, dword [esp + 0x34]
push 0x40
pop eax
cmp word [ecx + 0x22], ax
jge 0x49ee86
test byte [ecx + 0x1c], 0xe0
jne 0x49ee86
mov eax, dword [esp + 0x10]
test dword [eax + 0x2c], 0x404000
jne 0x49ee86
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
xor esi, esi
jmp 0x49ee6f
shrd edx, ecx, 1
shr ecx, 1
inc esi
mov eax, edx
or eax, ecx
jne 0x49ee68
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
push 0xfffffffffffffffd
push esi
call fcn.00459979
pop ecx
pop ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
call fcn.0045974e
jmp 0x49edb8
mov eax, dword [ebp + 0x18]
cmp byte [edi + 0x2e], 0
mov esi, dword [ebp + 0x1c]
je 0x49eec4
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
jmp 0x49eeb8
cmp eax, edx
je 0x49eebc
mov eax, dword [eax + 0x14]
inc esi
test eax, eax
jne 0x49eeb0
push 0x71
pop ecx
mov dword [edi + 0x18], esi
jmp 0x49ef06
test esi, esi
je 0x49eed1
test al, 0x20
je 0x49eed1
push 0x65
pop ecx
jmp 0x49ef06
mov esi, dword [ebx + 0x28]
lea eax, [esi + 1]
mov dword [ebx + 0x28], eax
test dword [edx + 0x38], 0x800
je 0x49ef06
mov eax, dword [esp + 0x24]
test dword [eax + 0x50], 0x1000000
jne 0x49ef06
push dword [esp + 0x38]
mov ecx, ebx
push esi
call fcn.0049e6ae
mov edx, dword [esp + 0x4c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov dword [eax - 0x48], esi
test ecx, ecx
je 0x49ef5f
push dword [esp + 0xc]
push dword [edx + 0x2c]
mov edx, ecx
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004591cc
mov edx, dword [esp + 0x50]
add esp, 0xc
mov ecx, ebx
call fcn.00459a1b
mov edx, dword [esp + 0x10]
test byte [edx + 0x2c], 0xf
je 0x49ef5f
test dword [edx + 0x2c], 0x188002
jne 0x49ef5f
xor eax, eax
inc eax
test byte [edi + 0x28], al
jne 0x49ef5f
cmp byte [edi + 0x2f], 2
je 0x49ef5f
push 2
pop edx
mov ecx, esi
call fcn.0045974e
mov eax, dword [esp + 0xc]
test eax, eax
js 0x49ef78
cmp dword [ebx + 0x78], 0
mov ecx, ebx
mov edx, eax
cmovne ecx, dword [ebx + 0x78]
call fcn.004793c0
mov eax, dword [esp + 0x38]
test byte [eax + 0x24], 0x10
je 0x49f07c
push 0
push 0x14
mov ecx, edi
call fcn.004999d5
mov esi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], esi
pop ecx
pop ecx
mov dword [eax - 0x18], esi
test esi, esi
je 0x49f080
mov ecx, dword [ebx + 0x28]
mov dword [esi], ecx
mov eax, dword [ebx + 0x2c]
inc dword [ebx + 0x28]
inc eax
mov ecx, dword [esp + 0x14]
push 0
push eax
push 0x10000
push 0x4d
mov dword [ebx + 0x2c], eax
pop edx
mov dword [esi + 4], eax
call fcn.004591cc
mov ecx, dword [esp + 0x20]
add esp, 0xc
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esi + 8], eax
push 0
push eax
push 0
push 0x4b
pop edx
call fcn.004591cc
mov ecx, dword [esp + 0x40]
mov eax, 0x80
add esp, 0xc
test byte [ecx + 0x1c], al
jne 0x49f040
push 0
xor eax, eax
inc eax
push eax
push dword [esi]
mov esi, dword [esp + 0x20]
mov ecx, esi
push 0x76
pop edx
call fcn.004591cc
mov ecx, dword [ebx]
xor eax, eax
add esp, 0xc
lea edx, [eax + 1]
push 0
call fcn.004880fc
pop ecx
test eax, eax
je 0x49f06c
mov ecx, dword [eax + 0x10]
mov edx, eax
and dword [eax + 0x14], 0
push 0xfffffffffffffff8
mov byte [ecx], 0
mov ecx, esi
call fcn.004599ea
pop ecx
jmp 0x49f06c
call fcn.00474bb9
mov esi, eax
mov eax, dword [esp + 0x40]
push 0
movzx ecx, word [esi + 0x32]
push ecx
push dword [eax]
mov ecx, dword [esp + 0x20]
push 0x76
pop edx
call fcn.004591cc
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00459a1b
mov eax, dword [esp + 0x10]
and dword [eax + 0x2c], 0xffffffbf
mov byte [edi + 0x2d], 0
mov byte [edi + 0x2f], 3
mov eax, dword [esp + 0x20]
add eax, 0x60
sub dword [esp + 0x28], 1
mov dword [esp + 0x20], eax
jne 0x49ecf6
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x57], 0
jne 0x49eb9b
xor ecx, ecx
mov dword [esp + 0x10], ecx
test edx, edx
jle 0x49f223
lea esi, [edi + 0x334]
mov dword [esp + 0xc], esi
cmp dword [ebx + 0x24], 0
jne 0x49eb9b
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x28], eax
movzx eax, byte [esi]
imul eax, eax, 0x48
mov dword [esp + 0x40], eax
test byte [eax + edx + 0x30], 0x10
je 0x49f15d
test byte [eax + edx + 0x30], 8
mov ecx, dword [esp + 0x14]
je 0x49f111
push 0
push dword [eax + edx + 0x20]
push dword [eax + edx + 0x24]
push 0xa
pop edx
call fcn.004591cc
add esp, 0xc
jmp 0x49f159
xor eax, eax
push eax
push eax
push eax
push 0xf
pop edx
call fcn.004591cc
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x40]
push 0
push dword [eax + ecx + 0x20]
push dword [eax + ecx + 0x24]
mov ecx, dword [esp + 0x20]
push 0xa
pop edx
call fcn.004591cc
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, esi
call fcn.00459a36
mov ecx, dword [ecx + 0x6c]
mov esi, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
test edx, 0x404000
je 0x49f1bf
lea eax, [esi - 0x3c]
test edx, 0x4000
je 0x49f19c
mov ecx, dword [esp + 0x18]
lea edx, [edi + 0x50]
push eax
movzx eax, byte [esi]
add ecx, 8
push dword [esp + 0x20]
imul eax, eax, 0x48
push dword [esp + 0x44]
add eax, ecx
mov ecx, ebx
push eax
call fcn.0049a012
add esp, 0x10
jmp 0x49f1b1
push dword [esp + 0x1c]
mov edx, ecx
mov ecx, edi
push dword [esp + 0x40]
push eax
call fcn.0049a74c
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x57], 0
jne 0x49eb9b
push dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
add esi, 0xffffffc4
push esi
mov ecx, ebx
call fcn.0049457d
push dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
push esi
mov eax, dword [edx + 0x6c]
push dword [esp + 0x24]
mov dword [ecx - 0x1c], eax
mov ecx, ebx
push edi
call fcn.0049570a
mov esi, dword [esp + 0x28]
add esp, 0x1c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
inc ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esi - 0x24]
add esi, 0x60
mov dword [edi + 0x1c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
cmp ecx, dword [esp + 0x2c]
jl 0x49f0c6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x3c], eax
mov eax, edi
jmp 0x49ebb1