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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
push edi
inc ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
cmp esi, edi
je 0x4b1602
cmp byte [eax + 0x1e], 0
jne 0x4b1602
cmp dword [ebx + 0x40], edi
jne 0x4b1602
push edi
push edi
push edi
push 0x15
mov eax, ebx
call fcn.004a3445
add esp, 0x10
test eax, eax
je 0x4b09d1
xor eax, eax
inc eax
jmp 0x4b1604
push 0x2c
lea eax, [esp + 0x70]
push edi
push eax
call fcn.004de430
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [eax], 4
ja 0x4b09f7
mov dword [esi + 0x1c], edi
mov byte [esi + 5], 0
push edi
push esi
push ebx
call fcn.004b052f
add esp, 0xc
test eax, eax
jne 0x4b15e5
mov ecx, dword [esp + 0x30]
mov eax, esi
mov dword [eax + 0x1c], ecx
cmp dword [eax + 0x20], edi
je 0x4b0a69
cmp dword [eax + 0x28], edi
jne 0x4b0a54
xor edx, edx
xor esi, esi
mov ecx, eax
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], eax
mov edx, ecx
mov ecx, dword [ecx + 0x20]
inc esi
test ecx, ecx
jne 0x4b0a23
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x60]
test ecx, ecx
je 0x4b0a54
cmp esi, ecx
jle 0x4b0a54
push str.too_many_terms_in_compound_SELECT
mov esi, ebx
call fcn.0048c501
pop ecx
jmp 0x4b09c9
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.004af768
add esp, 0x10
jmp 0x4b1604
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax + 7]
mov dword [esp + 0x60], ecx
movzx ecx, byte [eax + 5]
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4b15e5
cmp dword [ebx + 0x40], edi
jg 0x4b15e5
mov ecx, dword [esp + 0x4c]
cmp dword [ecx], 1
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
jle 0x4b0ac6
push eax
mov esi, ebx
call fcn.004adf6d
pop ecx
jmp 0x4b0ac8
xor eax, eax
test eax, eax
jne 0x4b15e5
mov eax, dword [ebp + 0x10]
cmp byte [eax], 4
ja 0x4b0adc
and dword [esp + 0x30], edi
mov edi, ebx
call fcn.004af5bb
mov edi, eax
mov dword [esp + 0x50], edi
test edi, edi
je 0x4b15e5
mov ecx, dword [esp + 0x3c]
and dword [esp + 0x24], 0
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp ax, word [ecx]
jge 0x4b0c44
and dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
xor edx, edx
lea eax, [eax + ecx + 8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x5c], eax
cmp dword [eax + 0x10], edx
je 0x4b0c2a
cmp byte [eax + 0x14], dl
jne 0x4b0c2a
mov ecx, dword [eax + 4]
cmp ecx, edx
je 0x4b0b53
lea eax, [ebx + 0x18c]
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov dword [eax], ecx
mov dword [esp + 0x38], 1
jmp 0x4b0b57
mov dword [esp + 0x38], edx
and dword [esp + 0x20], 0
lea eax, [esp + 0x20]
mov ecx, esi
call fcn.0049f27e
mov eax, dword [esp + 0x20]
add dword [ebx + 0x1a4], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0xa8], eax
xor eax, eax
push eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb0]
push esi
push eax
mov byte [esp + 0xb8], 9
mov byte [esp + 0xb9], 0
push dword [ecx + 0x10]
push ebx
call fcn.004b0977
mov eax, dword [esp + 0x48]
add esp, 0x1c
cmp byte [eax + 0x1e], 0
jne 0x4b15e5
and dword [esp + 0x20], 0
lea eax, [esp + 0x20]
mov ecx, esi
call fcn.0049f27e
mov eax, dword [esp + 0x20]
sub dword [ebx + 0x1a4], eax
cmp dword [esp + 0x38], 0
je 0x4b0bf7
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x18c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 4
jbe 0x4b0c14
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
movzx eax, byte [esi + 5]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
movsx eax, word [eax]
inc dword [esp + 0x24]
add dword [esp + 0x14], 0x30
cmp dword [esp + 0x24], eax
jl 0x4b0b0c
cmp dword [ebp + 0x14], 0
je 0x4b0c8b
cmp dword [ebp + 0x1c], 0
je 0x4b0c8b
push dword [esp + 0x60]
mov esi, dword [ebp + 0x1c]
push dword [esi]
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [esp + 0x38]
call fcn.004b0167
add esp, 0x10
test eax, eax
je 0x4b0c85
cmp dword [esp + 0x60], 0
je 0x4b15e5
mov dword [esi], 1
jmp 0x4b15e5
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp byte [esi + 5], 0
je 0x4b0cba
cmp byte [esi + 7], 0
jne 0x4b0cba
cmp dword [esi + 0x14], 0
jne 0x4b0cba
push dword [esi]
push dword [esp + 0x30]
call fcn.0049ee69
and dword [esp + 0x30], 0
pop ecx
pop ecx
mov dword [esi + 0x14], eax
mov dword [esp + 0x18], eax
mov byte [esi + 5], 0
cmp dword [esp + 0x30], 0
je 0x4b0cff
mov esi, dword [esp + 0x30]
push esi
push ebx
call fcn.004ae349
mov ecx, dword [ebx + 0x44]
mov dword [esi + 8], ecx
inc dword [ebx + 0x44]
mov ecx, dword [esi]
push 0xfffffffffffffff7
push 0
inc ecx
inc ecx
push ecx
push dword [esi + 8]
mov ebx, eax
push 0x70
push edi
call fcn.004981ba
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add esp, 0x20
mov dword [esp + 0x14], eax
mov dword [ecx + 0x44], eax
mov esi, ecx
jmp 0x4b0d04
or dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 9
jne 0x4b0d24
mov eax, dword [esp + 0x4c]
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
mov eax, edi
push 0x70
call fcn.004981a3
add esp, 0xc
mov eax, edi
call fcn.004981e9
mov dword [esp + 0x9c], eax
push eax
mov eax, esi
mov ecx, ebx
call fcn.004af5e1
cmp dword [esp + 0x2c], 0
pop ecx
je 0x4b0d76
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x28], eax
inc eax
mov dword [ebx + 0x44], eax
push dword [esi]
push ebx
call fcn.004ae349
push 0xfffffffffffffff7
push 0
push 0
push dword [esp + 0x3c]
mov ebx, eax
push 0x70
push edi
call fcn.004981ba
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add esp, 0x20
jmp 0x4b0d7b
or dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x60], 0
jne 0x4b0e07
cmp dword [esp + 0x18], 0
jne 0x4b0e07
push 0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x48]
push ebx
call fcn.004b5c3a
add esp, 0x14
mov dword [esp + 0x28], eax
test eax, eax
je 0x4b15e5
cmp dword [esp + 0x14], 0
jl 0x4b0dd1
cmp dword [esp + 0x30], 0
jne 0x4b0dd1
mov ecx, dword [esp + 0x14]
push 1
mov eax, edi
call fcn.004984b8
or dword [esi + 0x44], 0xffffffff
pop ecx
push dword [ebp + 0x20]
mov eax, dword [esp + 0x2c]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [esp + 0x40]
push 0
push 0
push dword [esp + 0x68]
push esi
push ebx
call fcn.004adf8d
push dword [esp + 0x50]
call fcn.004b6b1b
add esp, 0x2c
jmp 0x4b158a
mov eax, edi
call fcn.004981e9
push 0x24
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xb8]
push 0
push eax
call fcn.004de430
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0xb4], ebx
test eax, eax
je 0x4b0e54
mov eax, dword [eax]
inc eax
mov dword [esp + 0x78], eax
jmp 0x4b0e59
and dword [esp + 0x78], 0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
lea eax, [esp + 0xb4]
push eax
call fcn.004a1aea
mov esi, dword [esp + 0x34]
pop ecx
lea eax, [esp + 0xb4]
push eax
call fcn.004a1aea
xor esi, esi
pop ecx
cmp dword [esp + 0x10], esi
je 0x4b0ea6
lea eax, [esp + 0xb4]
push eax
push 0x4a1856
push dword [esp + 0x18]
call fcn.0049f36d
add esp, 0xc
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x80]
mov dword [esp + 0x88], eax
mov dword [esp + 0x24], esi
jle 0x4b0efa
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax]
mov esi, dword [eax + 0x10]
lea ecx, [esp + 0xb4]
push ecx
call fcn.004a1aea
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], 0x10
cmp eax, dword [esp + 0x94]
pop ecx
jl 0x4b0ec5
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x4b15e5
xor eax, eax
cmp dword [esp + 0x18], eax
je 0x4b144e
mov eax, edi
call fcn.004981e9
mov dword [esp + 0x20], eax
mov eax, edi
call fcn.004981e9
mov dword [esp + 0x68], eax
mov eax, edi
call fcn.004981e9
push dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x74], eax
inc eax
push ebx
mov dword [ebx + 0x44], eax
call fcn.004ae349
push 0xfffffffffffffff7
push 0
push dword [esp + 0x88]
mov ebx, eax
push dword [esp + 0x84]
mov dword [esp + 0x7c], eax
push 0x70
push edi
call fcn.004981ba
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x48]
inc eax
lea ecx, [eax + 1]
mov dword [esp + 0x58], eax
mov dword [esi + 0x48], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x64], eax
mov eax, dword [edx]
add eax, ecx
lea ebx, [eax + 1]
mov dword [esp + 0x74], ebx
xor ebx, ebx
push ebx
mov dword [esi + 0x48], eax
mov edx, dword [edx]
push ecx
add edx, eax
push ebx
push 0x2f
mov eax, edi
mov dword [esp + 0xc8], ecx
mov dword [esi + 0x48], edx
call fcn.0049810a
push ebx
push dword [esp + 0x6c]
mov eax, edi
push ebx
push 0x2f
call fcn.0049810a
add esp, 0x40
push ebx
push dword [esp + 0x24]
mov eax, edi
push ebx
push 0x5b
call fcn.0049810a
mov eax, dword [edi + 0xc]
push ebx
push dword [esp + 0xac]
mov dword [esp + 0x70], eax
push 1
push 0x2f
mov eax, edi
call fcn.0049810a
push ebx
push ebx
push ebx
push 0x18
mov eax, edi
call fcn.0049810a
mov eax, dword [edi + 0xc]
mov dword [esp + 0x44], eax
add eax, 2
push eax
push dword [esp + 0x6c]
mov eax, edi
push 0x7b
call fcn.004981a3
add esp, 0x3c
push ebx
push ebx
push ebx
push 0x18
mov eax, edi
call fcn.0049810a
add esp, 0x10
lea edi, [esp + 0x6c]
mov eax, esi
call fcn.004b07b7
cmp dword [esp + 0x10], ebx
je 0x4b104e
mov eax, dword [esp + 0x14]
push 8
inc eax
push eax
push dword [esp + 0x18]
push esi
call fcn.004a1507
add esp, 0x10
push dword [ebp + 0x20]
mov eax, dword [esp + 0x18]
push dword [esp + 0x5c]
inc eax
push eax
push dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x40]
push ebx
push ebx
push dword [eax]
push eax
mov eax, dword [ebp + 0x10]
push esi
call fcn.004adf8d
mov edi, dword [esp + 0x78]
push ebx
push ebx
push ebx
push 0x18
mov eax, edi
call fcn.0049810a
mov eax, dword [edi + 0xc]
mov dword [esp + 0x90], eax
lea eax, [esp + 0xa4]
push eax
push esi
call fcn.004b06eb
add esp, 0x40
push ebx
push ebx
push ebx
push 0x18
mov eax, edi
call fcn.0049810a
mov edx, dword [esp + 0x30]
mov ecx, edi
call fcn.0049822b
push ebx
push dword [esp + 0x6c]
mov eax, edi
push ebx
push 0x2e
call fcn.0049810a
push ebx
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x5c]
push dword [esp + 0x68]
push esi
call fcn.004b5c3a
add esp, 0x34
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x4b15e5
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4b1103
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
jmp 0x4b127c
mov eax, dword [eax]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x40], eax
inc eax
cmp edx, ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
jle 0x4b1142
mov ecx, dword [esp + 0x7c]
add ecx, 0xc
mov dword [esp + 0x1c], edx
cmp dword [ecx], eax
jl 0x4b1139
inc dword [esp + 0x2c]
inc eax
add ecx, 0x18
dec dword [esp + 0x1c]
jne 0x4b1130
push dword [esp + 0x2c]
call fcn.004a1b8b
pop ecx
push ebx
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push esi
call fcn.004a127a
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
add esp, 0xc
add eax, ecx
push eax
push dword [esp + 0x74]
mov eax, edi
push 5
call fcn.004981a3
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x80], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ebx
jle 0x4b1207
mov eax, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
add eax, edx
cmp dword [eax + 0xc], ecx
jl 0x4b11f1
mov edi, dword [ebp + 8]
push ebx
push dword [esp + 0x44]
mov ebx, dword [eax]
push dword [eax + 4]
push dword [eax + 8]
call fcn.004a04cd
add esp, 0x10
cmp dword [esp + 0x40], eax
je 0x4b11dd
push dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x58]
push 8
call fcn.004981a3
add esp, 0xc
inc dword [esp + 0x10]
inc dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov esi, edi
mov edi, dword [esp + 0x50]
xor ebx, ebx
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 0x18
cmp eax, dword [esp + 0x80]
jl 0x4b119d
mov ecx, esi
call fcn.004a1b17
push eax
push dword [esp + 0x30]
mov dword [esp + 0x24], eax
push dword [esp + 0x3c]
mov eax, edi
push 0x55
call fcn.0049810a
push dword [esp + 0x2c]
mov eax, edi
push dword [esp + 0x84]
push 0x68
call fcn.004981a3
mov edx, dword [esp + 0x38]
add esp, 0x1c
mov eax, esi
call fcn.004a1b74
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x38]
jle 0x4b1259
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x3c], eax
push dword [esp + 0x28]
call fcn.004b6b1b
pop ecx
push dword [esp + 0x48]
mov eax, edi
push dword [esp + 0x74]
push 0x12
call fcn.004981a3
add esp, 0xc
mov byte [esp + 0x6d], 1
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
cmp dword [eax], ebx
mov dword [esp + 0x10], ebx
jle 0x4b12eb
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x20], ebx
je 0x4b12b7
add ecx, eax
push ecx
push eax
push dword [esp + 0x78]
mov eax, edi
push 3
call fcn.0049810a
add esp, 0x10
jmp 0x4b12d6
add eax, ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 1
mov eax, dword [eax + 0xc]
push dword [eax + ecx]
push esi
call fcn.004a1128
add esp, 0xc
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x1c], 0xc
cmp ecx, dword [eax]
jl 0x4b1293
mov eax, dword [eax]
dec eax
mov dword [esp + 0x10], eax
js 0x4b134e
mov esi, eax
cmp esi, ebx
jne 0x4b130a
push dword [esp + 0x54]
push dword [esp + 0x60]
push dword [esp + 0x4c]
push 0x44
jmp 0x4b131e
mov eax, dword [esp + 0x54]
add eax, esi
push eax
push dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
add eax, esi
push eax
push 0x43
mov eax, edi
call fcn.0049810a
mov eax, dword [esp + 0x74]
mov ebx, dword [eax + esi*4 + 0x10]
add esp, 0x10
push 0xfffffffffffffffc
push edi
or eax, 0xffffffff
call fcn.004984f7
pop ecx
pop ecx
mov dl, 0x10
mov ecx, edi
call fcn.00498431
xor ebx, ebx
dec esi
jns 0x4b12f6
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x68]
mov ecx, edi
call fcn.0049822b
mov eax, dword [esp + 0x18]
cmp dword [eax], ebx
mov dword [esp + 0x10], ebx
jle 0x4b139b
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
sub eax, ebx
mov dword [esp + 0x64], eax
jmp 0x4b1379
mov eax, dword [esp + 0x64]
mov esi, dword [ebp + 8]
lea edi, [eax + ebx]
call fcn.004a0638
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc ebx
cmp ecx, dword [eax]
jl 0x4b1375
mov edi, dword [esp + 0x50]
xor ebx, ebx
push ebx
push dword [esp + 0x18]
mov eax, edi
push ebx
push 0x2e
call fcn.0049810a
push dword [esp + 0x58]
mov eax, edi
push dword [esp + 0xac]
push 0x7b
call fcn.004981a3
add esp, 0x1c
push ebx
push dword [esp + 0x5c]
mov eax, edi
push ebx
push 0x2e
call fcn.0049810a
mov edx, dword [esp + 0x6c]
mov ecx, edi
call fcn.0049822b
lea eax, [esp + 0x7c]
push eax
mov eax, esi
call fcn.004b080a
add esp, 0x14
push ebx
push dword [esp + 0x3c]
mov eax, edi
push 1
push 0x2f
call fcn.0049810a
add esp, 0x10
cmp dword [esp + 0x20], ebx
je 0x4b1419
push dword [esp + 0x34]
mov eax, edi
push dword [esp + 0x74]
push 0x67
call fcn.004981a3
add esp, 0xc
jmp 0x4b1434
push dword [esp + 0x28]
call fcn.004b6b1b
pop ecx
mov ecx, dword [esp + 0xa0]
push 1
mov eax, edi
call fcn.004984b8
pop ecx
push ebx
push dword [esp + 0x18]
mov eax, edi
push ebx
push 0x2e
call fcn.0049810a
mov ebx, dword [ebp + 8]
add esp, 0x10
jmp 0x4b1578
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
je 0x4b1466
mov dword [esp + 0x14], eax
jmp 0x4b14b1
mov eax, esi
call fcn.004b04cd
mov dword [esp + 0x14], eax
test al, al
je 0x4b14b1
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax + 0x10]
mov esi, dword [esp + 0x30]
push esi
call fcn.0049ee69
pop ecx
pop ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
test eax, eax
je 0x4b14b1
cmp byte [esi + 0x1e], 0
jne 0x4b14b1
cmp byte [esp + 0x14], 1
mov edx, dword [eax + 0xc]
setne cl
mov byte [edx + 8], cl
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x95
lea eax, [esp + 0x6c]
push eax
push ebx
call fcn.004b06eb
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x44]
push dword [esp + 0x50]
push ebx
call fcn.004b5c3a
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4b14ea
mov esi, dword [esp + 0x38]
call fcn.0049f332
jmp 0x4b15e5
lea eax, [esp + 0x6c]
push eax
mov eax, ebx
call fcn.004b080a
xor eax, eax
pop ecx
cmp dword [esp + 0x20], eax
jne 0x4b1516
cmp byte [esp + 0x14], al
je 0x4b1516
push eax
push dword [esi + 0x14]
push eax
push 0x5b
mov eax, edi
call fcn.0049810a
add esp, 0x10
push esi
call fcn.004b6b1b
pop ecx
lea edi, [esp + 0x6c]
mov eax, ebx
call fcn.004b07b7
and dword [esp + 0x30], 0
cmp dword [esp + 0x10], 0
je 0x4b1547
push 8
push dword [esp + 0x4c]
push dword [esp + 0x18]
push ebx
call fcn.004a1507
add esp, 0x10
push dword [ebp + 0x20]
xor eax, eax
push dword [esp + 0x4c]
push dword [esp + 0x50]
push 0xffffffffffffffff
push eax
push eax
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.004adf8d
mov esi, dword [esp + 0x60]
add esp, 0x28
call fcn.0049f332
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov ecx, edi
call fcn.0049822b
mov edi, dword [esp + 0x50]
mov esi, dword [ebp + 0xc]
cmp dword [esp + 0x30], 0
je 0x4b15a5
push dword [ebp + 0x10]
mov eax, dword [esp + 0x50]
push dword [eax]
push edi
push esi
push ebx
call fcn.004ae3db
add esp, 0x14
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4b15ba
mov eax, dword [ebp + 0x18]
mov ecx, dword [ecx + 0xc]
imul eax, eax, 0x30
mov byte [eax + ecx + 0x1c], 1
mov edx, dword [esp + 0x9c]
mov ecx, edi
call fcn.0049822b
mov eax, dword [ebp + 0x10]
and dword [esp + 0x1c], 0
cmp byte [eax], 5
jne 0x4b15e5
push dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov ecx, ebx
call fcn.004ae890
pop ecx
push dword [esp + 0x7c]
call fcn.0048a842
pop ecx
push dword [esp + 0x8c]
call fcn.0048a842
mov eax, dword [esp + 0x20]
pop ecx
jmp 0x4b1604
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret