Function at 0x474ec5
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 0x18]
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov eax, dword [ebx]
mov edi, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edx
or edx, 0xffffffff
mov dword [esi + 0x1c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov dword [ebp + 0x18], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0xa7
test edx, edx
je 0x474f97
test byte [ecx + 0x18], 6
je 0x474f1d
xor ecx, ecx
mov dword [ebp + 0xc], ecx
jmp 0x474f99
xor ecx, ecx
cmp dword [eax + 0x14], ecx
jle 0x474f69
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x1c], eax
push edx
push dword [eax]
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
je 0x474f51
mov ecx, dword [ebp - 0xc]
inc edi
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
cmp edi, dword [ecx + 0x14]
jl 0x474f2a
mov eax, ecx
jmp 0x474f67
mov edx, dword [ebp - 0xc]
mov eax, edi
add eax, eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + eax*8 + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, edx
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp edi, dword [eax + 0x14]
jne 0x474ff2
push edx
push str.main
call fcn.004a14f6
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x474f97
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], eax
xor ecx, ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x475335
cmp dword [eax], 0
lea edi, [eax + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp + 8], edi
jle 0x475304
test dword [edi + 0x28], 0x2000
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
je 0x475151
mov eax, dword [ebp + 8]
xor edx, edx
mov edi, edx
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x38], eax
cmp dword [eax], edx
jle 0x4750f3
add eax, 0x14
mov dword [ebp + 0x1c], eax
jmp 0x474ff9
mov edi, dword [ebp - 8]
jmp 0x474f99
xor edx, edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edx
push ecx
push dword [ebp + 0xc]
add eax, 0xfffffff4
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push eax
call fcn.004966a4
add esp, 0x14
test eax, eax
je 0x4750cd
cmp dword [ebp - 0x34], 0
jne 0x4750aa
cmp dword [ebp - 4], 0
jle 0x4750a2
mov eax, dword [ebp + 8]
test dword [eax + 0x28], 0x400
je 0x47508b
push dword [ebp + 0x14]
push dword [eax + 0x30]
call fcn.00493c78
pop ecx
pop ecx
test eax, eax
js 0x47508b
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x24]
test al, 0x10
je 0x4750cd
test al, 8
jne 0x475074
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
je 0x47506f
push eax
push dword [ebp - 0xc]
call fcn.0046b01a
pop ecx
pop ecx
mov dword [ebp - 0x10], edi
jmp 0x4750a2
movzx eax, word [esi + 0x20]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0046b75c
add esp, 0x10
jmp 0x4750a2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47509d
push eax
push dword [ebp - 0xc]
call fcn.0046b01a
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], eax
inc dword [ebp - 4]
xor edi, edi
inc edi
jmp 0x4750b0
cmp dword [ebp - 4], 0
jg 0x4750cd
mov eax, dword [ebp + 8]
inc dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov word [esi + 0x20], ax
mov eax, dword [ebp + 0x1c]
or dword [eax], 0x40
test byte [eax], 0x80
jne 0x4750e8
jmp 0x4750d0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x28]
add eax, 0x14
mov edx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp + 0x1c], eax
cmp ecx, dword [edx]
jl 0x474ff7
mov ecx, dword [ebp - 0x14]
test edi, edi
jne 0x475253
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 8]
je 0x4752ec
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x475134
mov edi, dword [ebp - 0x1c]
cmp dword [eax + 0x3c], edi
mov edi, dword [ebp + 8]
jne 0x4752ec
cmp dword [ebp - 0x1c], 0
jne 0x475134
push 0x697cc8
push edx
call fcn.00631370
pop ecx
pop ecx
test eax, eax
jne 0x4752e9
cmp dword [edi + 0xc], 0
je 0x475159
push dword [edi + 0xc]
push dword [ebp + 0x10]
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
jne 0x4752e9
jmp 0x475190
cmp dword [ebp + 0x10], 0
je 0x4751ae
jmp 0x475103
mov eax, dword [ebp - 0x20]
push dword [eax]
push dword [ebp + 0x10]
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
je 0x475190
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 1
jne 0x4752e9
push dword [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call fcn.004706b2
add esp, 0xc
test eax, eax
je 0x4752e9
cmp byte [ebx + 0xdc], 2
jb 0x4751ae
xor ecx, ecx
cmp dword [edi + 0xc], ecx
je 0x4751ae
lea eax, [esi + 0x2c]
push eax
push ecx
push ebx
call fcn.0049d474
add esp, 0xc
push dword [ebp + 0x14]
call fcn.004a152b
mov dl, al
xor eax, eax
pop ecx
mov ecx, eax
mov byte [ebp + 0x1f], dl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edi, dword [eax + 4]
movsx eax, word [eax + 0x22]
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x475231
cmp byte [edi + 0xa], dl
jne 0x475226
push dword [ebp + 0x14]
push dword [edi]
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
jne 0x47521d
cmp dword [ebp - 4], eax
jle 0x4752a9
mov eax, dword [ebp + 8]
test dword [eax + 0x28], 0x400
je 0x475292
push dword [ebp + 0x14]
push dword [eax + 0x30]
call fcn.00493c78
pop ecx
pop ecx
test eax, eax
js 0x475292
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x24]
test al, 0x10
jne 0x47525b
mov dl, byte [ebp + 0x1f]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
inc ecx
add edi, 0x10
mov dword [ebp - 0x28], ecx
cmp ecx, eax
jl 0x4751d4
mov edi, dword [ebp + 8]
cmp dword [ebp - 4], 0
jne 0x4752e6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
test dword [eax + 0x1c], 0x200
jne 0x475253
inc dword [ebp - 0x18]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
jmp 0x4752ec
test al, 8
jne 0x47527b
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
je 0x475276
push eax
push dword [ebp - 0xc]
call fcn.0046b01a
pop ecx
pop ecx
mov dword [ebp - 0x10], edi
jmp 0x4752a9
movzx eax, word [esi + 0x20]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0046b75c
add esp, 0x10
jmp 0x4752a9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4752a4
push eax
push dword [ebp - 0xc]
call fcn.0046b01a
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
inc dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
movsx eax, word [eax + 0x20]
cmp edx, eax
movzx ecx, dx
push 0xffffffffffffffff
pop eax
cmove ecx, eax
mov dword [ebp - 8], edi
mov word [esi + 0x20], cx
test dword [edi + 0x28], 0x2000
je 0x475234
push edx
push edi
call fcn.004a06ae
pop ecx
pop ecx
jmp 0x475234
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
inc ecx
add edi, 0x48
mov dword [ebp - 0x14], ecx
mov dword [ebp + 8], edi
cmp ecx, dword [eax]
jl 0x474fbc
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
test edi, edi
je 0x47532a
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
test byte [edi + 0x24], 0x48
je 0x475324
or dword [esi + 4], 0x200000
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4756a1
cmp dword [ebp + 0xc], 0
jne 0x4754c8
mov ecx, dword [ebx + 0x84]
xor eax, eax
mov edi, eax
mov dword [ebp + 8], edi
test ecx, ecx
je 0x4753df
cmp byte [ebx + 0x9f], 0
mov al, byte [ebx + 0x9e]
mov byte [ebp + 0x1f], al
je 0x47538f
test dword [edx + 0x18], 0x400
je 0x4753df
cmp dword [ebp + 0x10], edi
je 0x475384
push dword [ecx]
push dword [ebp + 0x10]
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
jne 0x4753df
xor eax, eax
cmp byte [ebp + 0x1f], 0x80
setne al
jmp 0x4753d3
cmp al, 0x80
je 0x4753bb
cmp dword [ebp + 0x10], edi
je 0x4753b7
push dword [ebp + 0x10]
push 0x697ccc
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
jne 0x4753b4
mov dword [esi + 0x1c], 1
jmp 0x4753d6
mov al, byte [ebp + 0x1f]
cmp al, 0x7f
je 0x4753df
cmp dword [ebp + 0x10], edi
je 0x4753df
push dword [ebp + 0x10]
push 0x697cd0
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
jne 0x4753df
mov dword [esi + 0x1c], eax
mov edi, dword [ebx + 0x84]
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 0x18]
test dword [ecx + 0x18], 0x200
je 0x475420
cmp dword [ebp + 0x10], 0
je 0x475420
cmp dword [ecx + 8], 0
je 0x475420
push dword [ebp + 0x10]
push str.excluded
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
jne 0x475420
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + 0x18]
mov dword [ebp + 8], edi
mov dword [esi + 0x1c], 2
test edi, edi
je 0x4754c5
push dword [ebp + 0x14]
call fcn.004a152b
inc dword [ebp - 0x18]
pop ecx
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x1f], al
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x1c], eax
xor eax, eax
movsx edx, word [ecx + 0x22]
mov edi, eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], edx
test edx, edx
jle 0x475496
mov cl, byte [ebp + 0x1f]
cmp byte [eax + 0xa], cl
jne 0x475476
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a14f6
pop ecx
pop ecx
test eax, eax
je 0x475483
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
mov cl, byte [ebp + 0x1f]
inc edi
add eax, 0x10
mov dword [ebp - 0x34], eax
cmp edi, edx
jl 0x475458
jmp 0x47549a
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + 0x20]
cmp edi, eax
je 0x47558f
movsx edx, word [ecx + 0x22]
cmp edi, edx
jl 0x4754b7
push dword [ebp + 0x14]
call fcn.0049554e
pop ecx
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4754b7
test dword [ecx + 0x1c], 0x200
push 0xffffffffffffffff
pop eax
cmove edi, eax
movsx eax, word [ecx + 0x22]
mov edx, edi
cmp edi, eax
jl 0x475596
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x18], 1
jl 0x475505
test edi, edi
je 0x475505
mov eax, dword [ebp + 0x18]
test byte [eax + 0x18], 0x28
jne 0x475505
push dword [ebp + 0x14]
call fcn.0049554e
pop ecx
test eax, eax
je 0x475505
mov eax, dword [edi + 0x10]
test dword [eax + 0x1c], 0x200
je 0x475687
test dword [edi + 0x28], 0x2000
jne 0x47567f
mov edi, dword [ebp + 0x18]
test byte [edi + 0x18], 0x80
je 0x475576
cmp dword [ebp + 0x10], 0
jne 0x475576
mov eax, dword [edi + 8]
xor edx, edx
mov dword [ebp + 0x1c], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
test ecx, ecx
jle 0x475576
lea ecx, [eax + 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
test byte [ecx], 3
mov edi, dword [ecx - 8]
jne 0x475565
test edi, edi
jne 0x475543
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
jmp 0x47555a
cmp dword [ebp + 0x14], 0
je 0x475565
push dword [ebp + 0x14]
push edi
call fcn.004a14f6
mov edx, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x4756af
mov eax, dword [ebp + 8]
inc edx
add ecx, 0x14
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0x34], ecx
cmp edx, eax
jl 0x47552e
mov edi, dword [ebp + 0x18]
mov edi, dword [edi + 0xc]
inc dword [ebp - 0x30]
mov dword [ebp + 0x18], edi
test edi, edi
je 0x475757
mov edi, dword [ebp - 8]
jmp 0x474f97
or eax, 0xffffffff
mov edi, eax
mov edx, eax
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
movzx edx, dx
cmp eax, 2
jne 0x4755f2
cmp byte [ebx + 0xdc], 2
mov eax, edx
jb 0x4755ce
mov word [esi + 0x20], ax
mov dword [esi + 0x2c], ecx
mov dword [ebp - 0x24], 0xa7
jmp 0x4758f2
push eax
push ecx
call fcn.004a1a3e
pop ecx
pop ecx
movsx ecx, ax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], 0xb0
mov eax, dword [eax + 8]
add ecx, dword [eax + 0x24]
mov dword [esi + 0x1c], ecx
jmp 0x4758f2
mov dword [esi + 0x2c], ecx
mov al, byte [ebx + 0x9f]
mov word [esi + 0x20], dx
test al, al
je 0x475639
push edx
push ecx
mov dword [ebp - 0x24], 0xb0
mov byte [esi + 2], 0xa7
call fcn.004a1a3e
pop ecx
pop ecx
movsx ecx, ax
mov eax, dword [ebp + 8]
movsx eax, word [eax + 0x22]
inc eax
imul eax, dword [ebp + 0xc]
add ecx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
inc eax
add eax, ecx
mov dword [esi + 0x1c], eax
jmp 0x4758f2
mov dword [ebp - 0x24], 0x4d
test edi, edi
jns 0x47564d
mov byte [esi + 1], 0x44
jmp 0x4758f2
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
cmp dword [ebp + 0xc], 0
push 0xffffffffffffffff
pop ecx
jne 0x47566e
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x94], eax
jmp 0x4758f2
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x98], eax
jmp 0x4758f2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x47569d
test dword [edi + 0x28], 0x2000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jne 0x47569d
or ecx, 0xffffffff
mov word [esi + 0x20], cx
mov byte [esi + 1], 0x44
cmp eax, 1
je 0x4758f2
jmp 0x4757fc
imul eax, edx, 0x14
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 8]
test byte [edx + 0x18], 1
mov edx, dword [ebp + 0x1c]
mov ecx, dword [eax + ecx + 8]
jne 0x4756e2
test byte [ecx + 4], 0x10
je 0x4756e2
push edi
push str.misuse_of_aliased_aggregate__s
push ebx
call fcn.0048bb1f
add esp, 0xc
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
test dword [ecx + 4], 0x8000
je 0x475707
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x4000
je 0x4756ff
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + 0x18], eax
je 0x475707
push edi
push str.misuse_of_aliased_window_function__s
jmp 0x4756d1
push ecx
call fcn.0048f69e
pop ecx
cmp eax, 1
je 0x475722
push str.row_value_misused
push ebx
call fcn.0048bb1f
pop ecx
pop ecx
jmp 0x4756da
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp + 0x18]
push eax
push esi
push edx
mov eax, dword [edi + 8]
push eax
push ebx
call fcn.0047e256
add esp, 0x14
cmp byte [ebx + 0xdc], 2
jb 0x47596a
push esi
xor eax, eax
push eax
push ebx
call fcn.0049d474
add esp, 0xc
jmp 0x47596a
cmp dword [ebp + 0x10], 0
jne 0x4757f6
test byte [esi + 4], 0x80
je 0x4757eb
mov edi, dword [ebp - 0xc]
cmp byte [edi + 0xb1], 0
jne 0x4757c0
mov eax, dword [ebp - 0x2c]
test dword [eax + 0x18], 0x10000
je 0x4757b3
push edi
call fcn.004b4802
pop ecx
xor ecx, ecx
test eax, eax
je 0x47579c
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, ecx
jne 0x4757c0
mov eax, dword [edi + 0x20]
and eax, 0x20000000
or eax, ecx
je 0x4757ad
xor eax, eax
inc eax
jmp 0x4757af
mov eax, ecx
test eax, eax
jmp 0x4757be
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, 0
je 0x4757eb
push dword [ebp + 0x14]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.004529fd
push 8
xor eax, eax
mov byte [esi], 0x75
push eax
lea ecx, [esi + 0x2c]
push ecx
call fcn.00626f50
add esp, 0x18
xor eax, eax
inc eax
jmp 0x4756dd
push esi
call fcn.0048e642
pop ecx
test eax, eax
jne 0x4757e3
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47587e
dec eax
cmp dword [ecx], eax
jne 0x475873
mov eax, dword [esi + 4]
test eax, 0x800000
je 0x47581c
and eax, 0xff7fffff
mov dword [esi + 4], eax
jmp 0x47584b
cmp dword [esi + 0xc], 0
je 0x47582f
push dword [esi + 0xc]
push dword [ebp - 0xc]
call fcn.0048e44d
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], eax
je 0x475848
push dword [esi + 0x10]
push dword [ebp - 0xc]
call fcn.0048e44d
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0x10], eax
movzx eax, word [esi + 0x20]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0046b75c
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov byte [esi], 0xac
mov dword [esi + 8], str.coalesce
mov dword [esi + 0x14], eax
jmp 0x475967
push ecx
push dword [ebp - 0xc]
call fcn.0046b01a
pop ecx
pop ecx
cmp dword [ebp - 4], 0
mov ecx, str.ambiguous_column_name
push dword [ebp + 0x14]
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4758ae
push dword [ebp + 0x10]
push ecx
push eax
push str._s:__s._s._s
push ebx
call fcn.0048bb1f
add esp, 0x18
jmp 0x4758d7
cmp dword [ebp + 0x10], 0
je 0x4758c8
push dword [ebp + 0x10]
push eax
push str._s:__s._s
push ebx
call fcn.0048bb1f
add esp, 0x14
jmp 0x4758d7
push eax
push str._s:__s
push ebx
call fcn.0048bb1f
add esp, 0x10
push esi
push dword [ebx]
call fcn.0049cd8e
mov eax, dword [ebp - 0x2c]
pop ecx
mov byte [ebx + 0x11], 1
pop ecx
inc dword [eax + 0x14]
mov dword [ebp - 0x24], 0x79
test dword [esi + 4], 0x810000
jne 0x475932
cmp dword [esi + 0xc], 0
mov edi, dword [ebp - 0xc]
je 0x47590f
push dword [esi + 0xc]
push edi
call fcn.0048e44d
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], eax
je 0x475926
push dword [esi + 0x10]
push edi
call fcn.0048e44d
pop ecx
pop ecx
xor eax, eax
or dword [esi + 4], 0x800000
mov dword [esi + 0x10], eax
jmp 0x475934
xor eax, eax
cmp word [esi + 0x20], ax
mov eax, dword [ebp - 4]
jl 0x475959
cmp eax, 1
jne 0x475959
mov edi, dword [ebp - 8]
test edi, edi
je 0x475959
push esi
call fcn.0048de4d
or dword [edi + 0x38], eax
or dword [edi + 0x3c], edx
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 0x24]
mov byte [esi], cl
cmp eax, 1
jne 0x4756da
mov edi, dword [ebp + 0x18]
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [eax + 0x16c], ecx
je 0x475990
mov al, byte [esi]
cmp al, 0xa7
je 0x475980
cmp al, 0x4d
jne 0x475990
push dword [edi + 4]
push dword [ebp - 0x1c]
push esi
push ebx
call fcn.00483d20
add esp, 0x10
mov eax, dword [ebp - 0x2c]
jmp 0x475998
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, edi
jne 0x475995
jmp 0x4757e3