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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], 0
test edi, edi
je 0x49d84c
xor ecx, ecx
cmp dword [edi], 0x40
cmovge edi, ecx
mov dword [ebp + 0xc], edi
mov al, byte [eax + 0x3c]
mov ecx, dword [ebp + 0x14]
and al, 0x20
mov byte [esp + 0xf], al
mov eax, ecx
and eax, 0xfbff
mov dword [esp + 0x54], edi
cmp byte [esp + 0xf], 0
movzx edx, ax
movzx eax, cx
cmove edx, eax
movzx eax, dx
mov ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x49d89d
push 0x40
push str.at_most__d_tables_in_a_join
push esi
call fcn.0042f970
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 0x40
mov eax, 1
push 0
cmovne ecx, eax
mov dword [esp + 0x28], ecx
lea esi, [ecx + ecx*4]
mov ecx, dword [esp + 0x20]
shl esi, 4
add esi, 0x2e7
and esi, 0xfffffff8
lea eax, [esi + 0x48]
push eax
call fcn.0042d090
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x49d8e7
lea ecx, [esi + 0x48]
push ecx
push 0
push eax
call fcn.004f53d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x41], 0
je 0x49d900
mov edx, eax
call fcn.0042ce10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov byte [eax + 0x29], cl
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x40], 0xffffffff
mov dword [eax + 0x3c], 0xffffffff
mov dword [eax], edx
mov dword [eax + 8], edi
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x44], ecx
mov edx, dword [ecx + 0x6c]
mov dword [esp + 0x40], edx
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea eax, [edx - 1]
test edx, eax
jne 0x49d96c
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x70]
mov ecx, dword [ecx]
push 0
push eax
call fcn.0042d210
mov ecx, dword [esp + 0x4c]
add esp, 8
mov edx, dword [esp + 0x40]
mov dword [ecx + 0x70], eax
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x49d97a
mov dword [eax + edx*4], 0xffffffff
mov ecx, dword [esp + 0x10]
not edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
push 0x48
mov word [ecx + 0x22], ax
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], edx
lea edx, [ecx + 0x44]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0x1a4]
mov dword [ecx + 0x38], eax
lea eax, [ecx + 0x148]
add ecx, esi
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
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 ecx, [esi + 0x148]
mov dword [edx], 0
lea eax, [ecx + 0x18]
mov edx, dword [ebp + 8]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.00497b90
lea eax, [esi + 0x148]
mov dword [esp + 0x3c], 0
add esp, 4
cmp dword [eax + 0xc], 0
jle 0x49dace
mov edi, dword [esp + 0x10]
xor esi, esi
jmp 0x49da36
lea eax, [edi + 0x148]
cmp dword [esp + 0x24], 0
je 0x49da8c
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x60]
xorps xmm0, xmm0
mov dword [esp + 0x78], 0
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
mov edx, dword [esi + edx]
mov byte [esp + 0x74], 2
mov dword [esp + 0x60], fcn.00460880
mov dword [esp + 0x64], 0x460990
mov dword [esp + 0x78], 0
call fcn.0045c6d0
cmp byte [esp + 0x74], 0
je 0x49daaf
lea eax, [edi + 0x148]
mov edx, dword [eax + 0x14]
mov ecx, dword [esp + 0x14]
push 0x10
push dword [edi + 0x34]
mov edx, dword [esi + edx]
call fcn.00464210
mov eax, dword [edi + 0x15c]
add esp, 8
or word [esi + eax + 0x14], 4
mov eax, dword [esp + 0x38]
add esi, 0x30
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [edi + 0x154]
jl 0x49da30
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x24], 0
jne 0x49daec
test edi, edi
je 0x49dade
mov al, byte [edi]
mov byte [esi + 0x24], al
test dword [esp + 0x28], 0x400
je 0x49daec
mov byte [esi + 0x28], 1
mov eax, dword [esp + 0x18]
xor esi, esi
cmp dword [eax], esi
jle 0x49db1a
mov edi, dword [esp + 0x30]
lea edx, [eax + 0x38]
nop dword [eax]
mov ecx, dword [edi]
lea edx, [edx + 0x50]
mov eax, dword [edx - 0x50]
inc esi
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [esp + 0x18]
inc dword [edi]
cmp esi, dword [eax]
jl 0x49db00
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + 0xc]
sub esi, 1
js 0x49db45
mov edi, ecx
push esi
mov edx, edi
mov ecx, eax
call fcn.004971b0
mov eax, dword [esp + 0x1c]
add esp, 4
sub esi, 1
jns 0x49db28
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x41], 0
jne 0x49dbf0
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x10]
and eax, 0x400
mov dword [esp + 0x44], eax
je 0x49db9b
mov edx, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00498620
add esp, 8
test eax, eax
je 0x49db85
mov edi, dword [esp + 0x10]
mov byte [edi + 0x28], 1
jmp 0x49db9f
test edi, edi
mov edi, dword [esp + 0x10]
jne 0x49db9f
mov eax, 0x200
mov dword [edi + 8], esi
or word [edi + 0x22], ax
jmp 0x49db9f
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x24], 1
jne 0x49dbb3
lea ecx, [esp + 0x4c]
call fcn.0049d640
test eax, eax
jne 0x49dc14
lea ecx, [esp + 0x4c]
call fcn.0049c080
test eax, eax
jne 0x49dbf0
xor edx, edx
mov ecx, edi
call fcn.0049cdb0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x41], 0
jne 0x49dbf0
cmp dword [edi + 8], 0
je 0x49dc1e
movzx edx, word [edi + 0x20]
mov ecx, edi
inc dx
call fcn.0049cdb0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x41], 0
je 0x49dc18
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
mov dword [edx + 0x1a4], eax
mov edx, ecx
mov ecx, dword [esp + 0x1c]
call fcn.00499d20
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
cmp dword [edi + 8], 0
jne 0x49dc35
test dword [ecx + 0x18], 0x20000
je 0x49dc35
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x40], 0
jne 0x49dbf0
cmp byte [ecx + 0x41], 0
jne 0x49dbf0
cmp byte [edi + 0x29], 2
jb 0x49dd5d
test esi, esi
je 0x49dd5d
mov eax, 0x400
test word [ecx + 0x3c], ax
jne 0x49dd5d
mov edx, esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00497ea0
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
test edx, edx
je 0x49dc9a
mov ecx, esi
call fcn.00497ea0
mov esi, dword [esp + 0x30]
or esi, eax
or dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
jmp 0x49dc9e
mov esi, dword [esp + 0x30]
mov al, byte [edi + 0x29]
cmp al, 2
jb 0x49dd5d
mov edx, dword [edi + 4]
nop dword [eax]
movzx eax, al
add eax, 9
lea eax, [eax + eax*4]
add eax, eax
mov ecx, dword [edi + eax*8]
movzx eax, byte [ecx + 0x10]
lea eax, [eax + eax*4]
add eax, eax
test byte [edx + eax*8 + 0x2c], 8
je 0x49dd5d
cmp word [esp + 0x44], 0
jne 0x49dce7
test dword [ecx + 0x24], 0x1000
je 0x49dd5d
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov ecx, edi
mov dword [esp + 0x40], eax
and ecx, esi
and eax, dword [esp + 0x2c]
or ecx, eax
jne 0x49dd59
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea esi, [eax + eax*2]
shl esi, 4
add esi, edx
cmp edx, esi
jae 0x49dd38
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, edi
and eax, dword [esp + 0x40]
or ecx, eax
je 0x49dd2b
mov eax, dword [edx]
test byte [eax + 4], 1
je 0x49dd34
add edx, 0x30
cmp edx, esi
jb 0x49dd13
jmp 0x49dd38
cmp edx, esi
jb 0x49dd59
mov edi, dword [esp + 0x10]
dec dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov al, byte [edi + 0x29]
mov edx, dword [edi + 4]
dec al
mov byte [edi + 0x29], al
cmp al, 2
jae 0x49dcb0
jmp 0x49dd5d
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
movsx eax, word [edi + 0x20]
mov edx, dword [esp + 0x18]
add dword [ecx + 0x1a4], eax
test byte [esp + 0x28], 4
je 0x49dd94
mov ecx, dword [edi + 0x320]
test dword [ecx + 0x24], 0x1000
je 0x49dd94
mov byte [edi + 0x26], 1
mov eax, dword [edx + 0x18]
test byte [eax + 0x2a], 0x20
jne 0x49dd94
and dword [ecx + 0x24], 0xffffffbf
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x49dfcc
lea eax, [edi + 0x320]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x30], eax
movzx eax, byte [eax - 0x14]
mov edi, 0xfff0bdc0
lea eax, [eax + eax*4]
shl eax, 4
add eax, edx
mov dword [esp + 0x2c], eax
mov esi, dword [eax + 0x18]
mov dword [esp + 0x3c], esi
mov edx, dword [esi + 0x40]
test edx, edx
je 0x49ddf3
mov eax, dword [esp + 0x1c]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x49ddf3
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x49ddf3
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x49dde7
mov eax, dword [esp + 0x30]
mov cl, byte [esi + 0x2a]
mov edx, dword [eax]
mov dword [esp + 0x40], edx
test cl, 2
jne 0x49df11
cmp dword [esi + 0xc], 0
jne 0x49df11
mov eax, dword [edx + 0x24]
test eax, 0x400
je 0x49de57
mov eax, dword [esi + 0x38]
test eax, eax
je 0x49de33
mov ecx, dword [esp + 0x1c]
cmp dword [eax], ecx
je 0x49de33
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x49de28
mov ecx, dword [esp + 0x20]
mov edx, 0x98
push 0xfffffffffffffff6
push eax
mov eax, dword [esp + 0x34]
push 0
push 0
push dword [eax + 0x38]
call fcn.0044afd0
add esp, 0x14
jmp 0x49df11
test cl, 0x10
jne 0x49df11
test al, 0x40
jne 0x49defc
test byte [esp + 0x28], 0x10
jne 0x49defc
mov edx, dword [esp + 0x10]
mov ecx, 0x36
cmp byte [edx + 0x26], 0
je 0x49de91
mov eax, dword [esp + 0x2c]
mov ecx, 0x37
mov eax, dword [eax + 0x38]
mov dword [edx + 0x3c], eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [eax + 0x38]
push edi
call fcn.00477ac0
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp byte [edx + 0x26], 0
jne 0x49df15
cmp word [esi + 0x22], 0x40
jge 0x49df15
test byte [esi + 0x2a], 0x20
jne 0x49df15
mov eax, dword [esp + 0x2c]
xor esi, esi
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x4c]
mov eax, edx
or eax, ecx
je 0x49dee1
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x49ded4
mov eax, dword [esp + 0x20]
mov ecx, eax
push 0xfffffffffffffff2
push esi
mov edx, dword [eax + 0x20]
dec edx
call fcn.0044b7b0
mov esi, dword [esp + 0x44]
add esp, 8
jmp 0x49df11
push dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.00468740
add esp, 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test dword [eax + 0x24], 0x200
je 0x49df5d
test byte [esi + 0x2a], 0x20
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], 0x36
je 0x49e0b8
mov eax, dword [ecx + 0x34]
and al, 3
cmp al, 2
jne 0x49e0b8
test byte [esp + 0x28], 0x40
je 0x49e0b8
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0x3c]
mov dword [ecx - 0x38], eax
mov esi, dword [esp + 0x14]
test edi, edi
js 0x49dfae
mov eax, dword [esi + 0x198]
mov ecx, edi
test eax, eax
cmovne esi, eax
mov eax, 1
shl eax, cl
mov edx, dword [esi + 0x14c]
test edx, eax
jne 0x49dfae
mov eax, dword [esi]
bts edx, edi
mov dword [esi + 0x14c], edx
mov edx, edi
add edx, edx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*8 + 0xc]
mov eax, dword [eax]
mov dword [esi + edi*4 + 0x150], eax
cmp edi, 1
jne 0x49dfae
mov ecx, esi
call fcn.0046eb80
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
add eax, 0x50
sub dword [esp + 0x44], 1
mov dword [esp + 0x30], eax
jne 0x49ddb1
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x41], 0
jne 0x49dbf0
or ecx, 0xffffffff
or edx, 0xffffffff
xor edi, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edx
cmp dword [esp + 0x24], edi
jle 0x49e1ec
mov esi, dword [esp + 0x10]
add esi, 0x30c
nop dword [eax + eax]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x49e053
lea eax, [esi - 0x2c]
push eax
movzx eax, byte [esi]
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + eax*4]
add ecx, 8
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.00498980
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp byte [eax + 0x41], 0
jne 0x49dbf0
push dword [esp + 0x28]
movzx eax, byte [esi]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esi - 0x2c]
push edi
push eax
call fcn.00493d30
mov eax, dword [esp + 0x30]
mov edx, edi
push dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.00494720
mov ecx, dword [esi - 0x14]
inc edi
mov dword [esp + 0x50], eax
add esp, 0x18
mov eax, dword [esp + 0x10]
add esi, 0x50
mov dword [esp + 0x44], edx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x38]
cmp edi, dword [esp + 0x24]
jl 0x49e010
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [edx + 0x26], 0
je 0x49e0e9
mov eax, dword [esp + 0x2c]
mov esi, dword [ebp + 0x18]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x49e0dc
nop
cmp eax, ecx
je 0x49e0dc
mov eax, dword [eax + 0x14]
inc esi
test eax, eax
jne 0x49e0d0
mov dword [esp + 0x38], 0x37
mov dword [edx + 0x40], esi
jmp 0x49e121
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x49e114
mov edx, dword [esp + 0x28]
test dl, 0x40
je 0x49e114
mov ecx, edx
mov esi, eax
and ecx, 0x1000
neg ecx
sbb ecx, ecx
add ecx, 0x36
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x3c]
jmp 0x49e121
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x44]
lea eax, [esi + 1]
mov dword [edx + 0x44], eax
mov edx, dword [esp + 0x30]
mov eax, esi
mov dword [edx - 0x38], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov edx, ecx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], ecx
cmp dword [eax + 0x54], ecx
jg 0x49e15e
mov ecx, dword [esp + 0x20]
call fcn.0044adb0
test eax, eax
jne 0x49e196
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0x20]
lea eax, [edx + 1]
mov edx, dword [esp + 0x20]
lea ecx, [ecx + ecx*4]
mov dword [edx + 0x20], eax
mov eax, dword [edx + 4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], edi
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], 0
mov byte [eax], cl
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x3c]
call fcn.0044b8a0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x24]
test al, 0xf
je 0x49df61
test eax, 0x8002
jne 0x49df61
mov eax, dword [esp + 0x10]
test byte [eax + 0x22], 1
jne 0x49df61
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49df61
mov eax, dword [eax + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
jmp 0x49df61
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret