Function at 0x47cbaa
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov dword [ebp - 4], edx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
xor edx, edx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx]
push edi
mov edi, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], edx
or edx, 0xffffffff
mov dword [esi + 0x1c], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0xa7
test edx, edx
je 0x47cc79
test byte [ecx + 0x18], 6
je 0x47cc06
xor eax, eax
mov edx, eax
mov dword [ebp - 4], edx
jmp 0x47cc79
xor edi, edi
cmp edi, dword [eax + 0x14]
jge 0x47cc50
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x14], eax
mov ecx, dword [eax]
call fcn.0045436f
test eax, eax
je 0x47cc37
mov ecx, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
add eax, 0x10
mov dword [ebp + 0x14], eax
cmp edi, dword [ecx + 0x14]
jl 0x47cc13
mov eax, ecx
jmp 0x47cc4d
mov edx, dword [ebp - 0x14]
mov eax, edi
add eax, eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + eax*8 + 0xc]
mov dword [ebp - 0x24], eax
mov eax, edx
mov edx, dword [ebp - 4]
cmp edi, dword [eax + 0x14]
jne 0x47cc73
mov ecx, str.main
call fcn.0045436f
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x47cc76
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x24], ecx
jmp 0x47cc01
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x47cfe2
xor ecx, ecx
lea edi, [eax + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], edi
cmp dword [eax], ecx
jle 0x47cfae
test dword [edi + 0x28], 0x2000
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
je 0x47ce0e
and dword [ebp + 0x14], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x40], eax
cmp dword [eax], 0
jle 0x47cdb7
lea edi, [eax + 0x14]
xor eax, eax
lea ecx, [edi - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push edx
push dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0047c985
add esp, 0xc
test eax, eax
je 0x47cd8f
cmp dword [ebp - 0x30], 0
jne 0x47cd6f
mov eax, dword [ebp - 8]
test eax, eax
jle 0x47cd62
mov eax, dword [ebp - 0x10]
test dword [eax + 0x28], 0x400
je 0x47cd4b
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
call fcn.0048ed69
test eax, eax
js 0x47cd4b
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x24]
test al, 0x10
je 0x47cd8f
test al, 8
jne 0x47cd35
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 8], eax
test edx, edx
je 0x47cd5c
jmp 0x47cd52
movzx eax, word [esi + 0x20]
lea edx, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0047cad4
pop ecx
pop ecx
jmp 0x47cd5f
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x47cd5a
mov ecx, dword [ebp - 0x14]
call fcn.004808e2
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 8], eax
jmp 0x47cd75
cmp dword [ebp - 8], 0
jg 0x47cd8f
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov word [esi + 0x20], ax
or dword [edi], 0x40
test byte [edi], 0x80
jne 0x47cda7
jmp 0x47cd92
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
inc eax
mov edx, dword [ebp - 4]
add edi, 0x14
mov dword [ebp + 0x14], eax
cmp eax, dword [ecx]
jl 0x47ccce
cmp dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
jne 0x47cf96
cmp dword [ebp + 8], 0
mov edx, dword [ebp - 4]
je 0x47cf99
mov eax, dword [ebp - 0x28]
test edx, edx
je 0x47cdf5
mov edi, dword [ebp - 0x24]
cmp dword [eax + 0x3c], edi
mov edi, dword [ebp - 0x10]
jne 0x47cf99
cmp dword [ebp - 0x24], 0
jne 0x47cdf5
push 0x6d451c
push edx
call fcn.00650fe0
pop ecx
pop ecx
test eax, eax
jne 0x47cf93
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp + 8]
test edx, edx
je 0x47ce16
call fcn.0045436f
test eax, eax
jne 0x47cf93
jmp 0x47ce47
cmp dword [ebp + 8], 0
je 0x47ce65
jmp 0x47cdc7
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call fcn.0045436f
test eax, eax
je 0x47ce47
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 1
jne 0x47cf93
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.0047cb22
pop ecx
test eax, eax
je 0x47cf93
cmp byte [ebx + 0xdc], 2
jb 0x47ce65
xor eax, eax
cmp dword [edi + 0xc], eax
je 0x47ce65
lea eax, [esi + 0x2c]
xor edx, edx
push eax
mov ecx, ebx
call fcn.00485d94
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.00454404
mov ecx, dword [ebp - 0x28]
mov dl, al
xor eax, eax
mov byte [ebp + 0x17], dl
mov dword [ebp - 0x30], eax
mov edi, dword [ecx + 4]
movsx ecx, word [ecx + 0x22]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jle 0x47cee1
cmp byte [edi + 0xa], dl
jne 0x47ced6
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
call fcn.0045436f
test eax, eax
jne 0x47cecd
cmp dword [ebp - 8], eax
jle 0x47cf55
mov eax, dword [ebp - 0x10]
test dword [eax + 0x28], 0x400
je 0x47cf41
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
call fcn.0048ed69
test eax, eax
js 0x47cf41
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x24]
test al, 0x10
jne 0x47cf0e
mov dl, byte [ebp + 0x17]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
inc eax
add edi, 0x10
mov dword [ebp - 0x30], eax
cmp eax, ecx
jl 0x47ce88
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], 0
jne 0x47cf90
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
test dword [eax + 0x1c], 0x200
jne 0x47cf06
inc dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
jmp 0x47cf99
test al, 8
jne 0x47cf2b
mov edx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 8], edi
test edx, edx
je 0x47cf26
mov ecx, dword [ebp - 0x14]
call fcn.004808e2
mov dword [ebp - 0x18], edi
jmp 0x47cf55
movzx eax, word [esi + 0x20]
lea edx, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0047cad4
pop ecx
pop ecx
jmp 0x47cf55
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x47cf50
mov ecx, dword [ebp - 0x14]
call fcn.004808e2
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x10]
movsx eax, word [eax + 0x20]
cmp edx, eax
movzx ecx, dx
push 0xffffffffffffffff
pop eax
cmove ecx, eax
mov dword [ebp - 0xc], edi
mov word [esi + 0x20], cx
test dword [edi + 0x28], 0x2000
je 0x47cee4
mov ecx, edi
call fcn.0049dae0
jmp 0x47cee4
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
inc ecx
add edi, 0x48
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], edi
cmp ecx, dword [eax]
jl 0x47cc9d
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x47cfd4
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 0x47cfce
or dword [esi + 4], 0x200000
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47d393
mov ecx, dword [ebp + 0x10]
test edx, edx
jne 0x47d167
mov edx, dword [ebx + 0x84]
xor eax, eax
mov edi, eax
mov dword [ebp - 0x1c], edi
test edx, edx
je 0x47d084
cmp byte [ebx + 0x9f], 0
mov al, byte [ebx + 0x9e]
mov byte [ebp + 0x17], al
je 0x47d038
test dword [ecx + 0x18], 0x400
je 0x47d084
cmp dword [ebp + 8], edi
je 0x47d02d
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
call fcn.0045436f
test eax, eax
jne 0x47d084
xor eax, eax
cmp byte [ebp + 0x17], 0x80
setne al
jmp 0x47d078
cmp al, 0x80
je 0x47d062
cmp dword [ebp + 8], edi
je 0x47d05e
mov edx, dword [ebp + 8]
mov ecx, 0x6d4518
call fcn.0045436f
test eax, eax
jne 0x47d05b
mov dword [esi + 0x1c], 1
jmp 0x47d07b
mov al, byte [ebp + 0x17]
cmp al, 0x7f
je 0x47d084
cmp dword [ebp + 8], edi
je 0x47d084
mov edx, dword [ebp + 8]
mov ecx, 0x6d452c
call fcn.0045436f
test eax, eax
jne 0x47d084
mov dword [esi + 0x1c], eax
mov edi, dword [ebx + 0x84]
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 0x10]
test dword [ecx + 0x18], 0x200
je 0x47d0c3
cmp dword [ebp + 8], 0
je 0x47d0c3
cmp dword [ecx + 8], 0
je 0x47d0c3
mov edx, dword [ebp + 8]
mov ecx, str.excluded
call fcn.0045436f
test eax, eax
jne 0x47d0c3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x1c], edi
mov dword [esi + 0x1c], 2
test edi, edi
je 0x47d164
mov ecx, dword [ebp + 0xc]
call fcn.00454404
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
mov byte [ebp + 0x17], al
mov eax, dword [edi + 0x3c]
movsx edx, word [ecx + 0x22]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x44], edx
mov edi, eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
test edx, edx
jle 0x47d136
mov cl, byte [ebp + 0x17]
cmp byte [eax + 0xa], cl
jne 0x47d116
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.0045436f
test eax, eax
je 0x47d123
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov cl, byte [ebp + 0x17]
inc edi
add eax, 0x10
mov dword [ebp - 0x3c], eax
cmp edi, edx
jl 0x47d0fa
jmp 0x47d13a
mov ecx, dword [ebp - 0x1c]
movsx eax, word [ecx + 0x20]
cmp edi, eax
je 0x47d28c
movsx edx, word [ecx + 0x22]
cmp edi, edx
jl 0x47d156
mov ecx, dword [ebp + 0xc]
call fcn.00480de8
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x47d156
test dword [ecx + 0x1c], 0x200
push 0xffffffffffffffff
pop eax
cmove edi, eax
movsx eax, word [ecx + 0x22]
mov edx, edi
cmp edi, eax
jl 0x47d293
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 0x20], 1
jl 0x47d1a3
test edi, edi
je 0x47d1a3
mov eax, dword [ebp + 0x10]
test byte [eax + 0x18], 0x28
jne 0x47d1a3
mov ecx, dword [ebp + 0xc]
call fcn.00480de8
test eax, eax
je 0x47d1a3
mov eax, dword [edi + 0x10]
test dword [eax + 0x1c], 0x200
je 0x47d379
test dword [edi + 0x28], 0x2000
jne 0x47d371
mov edi, dword [ebp + 0x10]
test byte [edi + 0x18], 0x80
je 0x47d213
cmp dword [ebp + 8], 0
jne 0x47d213
mov eax, dword [edi + 8]
xor edx, edx
mov dword [ebp + 0x14], edx
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jle 0x47d213
lea ecx, [eax + 0x14]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
test byte [ecx], 3
mov edi, dword [ecx - 8]
jne 0x47d202
test edi, edi
jne 0x47d1e1
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
jmp 0x47d1f7
cmp dword [ebp + 0xc], 0
je 0x47d202
mov edx, dword [ebp + 0xc]
mov ecx, edi
call fcn.0045436f
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x47d3a1
mov eax, dword [ebp - 0x3c]
inc edx
add ecx, 0x14
mov dword [ebp + 0x14], edx
mov dword [ebp - 0x30], ecx
cmp edx, eax
jl 0x47d1cc
mov edi, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
inc dword [ebp - 0x38]
mov dword [ebp + 0x10], edi
test edi, edi
jne 0x47cc73
cmp dword [ebp + 8], edi
jne 0x47d491
test byte [esi + 4], 0x80
je 0x47d486
mov edi, dword [ebp - 0x14]
cmp byte [edi + 0xb1], 0
jne 0x47d458
mov eax, dword [ebp - 0x34]
test dword [eax + 0x18], 0x10000
je 0x47d44b
mov ecx, edi
call fcn.0048ab90
xor ecx, ecx
test eax, eax
je 0x47d274
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, ecx
jne 0x47d458
mov eax, dword [edi + 0x20]
and eax, 0x20000000
or eax, ecx
je 0x47d445
xor eax, eax
inc eax
jmp 0x47d447
or eax, 0xffffffff
mov edi, eax
mov edx, eax
xor eax, eax
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x14], eax
movzx edx, dx
cmp eax, 2
jne 0x47d2e8
cmp byte [ebx + 0xdc], al
jb 0x47d2c8
mov word [esi + 0x20], dx
mov dword [esi + 0x2c], ecx
mov dword [ebp - 0x2c], 0xa7
jmp 0x47d583
call fcn.0048acd5
movsx ecx, ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], 0xb0
mov eax, dword [eax + 8]
add ecx, dword [eax + 0x24]
mov dword [esi + 0x1c], ecx
jmp 0x47d583
mov dword [esi + 0x2c], ecx
mov al, byte [ebx + 0x9f]
mov word [esi + 0x20], dx
test al, al
je 0x47d32b
mov dword [ebp - 0x2c], 0xb0
mov byte [esi + 2], 0xa7
call fcn.0048acd5
movsx ecx, ax
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax + 0x22]
inc eax
imul eax, dword [ebp + 0x14]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
inc eax
add eax, ecx
mov dword [esi + 0x1c], eax
jmp 0x47d583
mov dword [ebp - 0x2c], 0x4d
test edi, edi
jns 0x47d33f
mov byte [esi + 1], 0x44
jmp 0x47d583
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
cmp dword [ebp + 0x14], 0
push 0xffffffffffffffff
pop ecx
jne 0x47d360
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x94], eax
jmp 0x47d583
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x98], eax
jmp 0x47d583
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x47d38f
test dword [edi + 0x28], 0x2000
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jne 0x47d38f
or ecx, 0xffffffff
mov word [esi + 0x20], cx
mov byte [esi + 1], 0x44
cmp eax, 1
je 0x47d583
jmp 0x47d497
imul eax, edx, 0x14
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 8]
test byte [edx + 0x18], 1
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + ecx + 8]
jne 0x47d3d4
test byte [ecx + 4], 0x10
je 0x47d3d4
push edi
push str.misuse_of_aliased_aggregate__s
push ebx
call fcn.0045421f
add esp, 0xc
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
test dword [ecx + 4], 0x8000
je 0x47d3f9
mov eax, dword [ebp + 0x10]
test dword [eax + 0x18], 0x4000
je 0x47d3f1
mov eax, dword [ebp - 0x34]
cmp dword [ebp + 0x10], eax
je 0x47d3f9
push edi
push str.misuse_of_aliased_window_function__s
jmp 0x47d3c3
call fcn.0047f0da
cmp eax, 1
je 0x47d412
push str.row_value_misused
push ebx
call fcn.0045421f
pop ecx
pop ecx
jmp 0x47d3cc
mov eax, dword [ebp - 0x38]
mov ecx, ebx
mov edi, dword [ebp + 0x10]
push eax
push esi
push edx
mov edx, dword [edi + 8]
call fcn.0047c88a
add esp, 0xc
cmp byte [ebx + 0xdc], 2
jb 0x47d5f6
push esi
xor edx, edx
mov ecx, ebx
call fcn.00485d94
pop ecx
jmp 0x47d5f6
mov eax, ecx
test eax, eax
jmp 0x47d456
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, 0
je 0x47d486
push dword [ebp + 0xc]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.00453350
add esp, 0xc
mov byte [esi], 0x75
xor eax, eax
lea ecx, [esi + 0x2c]
push 8
push eax
push ecx
call fcn.006390b0
add esp, 0xc
xor eax, eax
inc eax
jmp 0x47d3cf
mov ecx, esi
call fcn.00480986
test eax, eax
jne 0x47d47e
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x47d510
dec eax
cmp dword [ecx], eax
jne 0x47d506
mov eax, dword [esi + 4]
test eax, 0x800000
je 0x47d4b7
and eax, 0xff7fffff
mov dword [esi + 4], eax
jmp 0x47d4df
mov edx, dword [esi + 0xc]
test edx, edx
je 0x47d4c6
mov ecx, dword [ebp - 0x14]
call fcn.0047fc48
mov edx, dword [esi + 0x10]
xor eax, eax
mov dword [esi + 0xc], eax
test edx, edx
je 0x47d4dc
mov ecx, dword [ebp - 0x14]
call fcn.0047fc48
xor eax, eax
mov dword [esi + 0x10], eax
movzx eax, word [esi + 0x20]
lea edx, [ebp - 0x18]
push eax
push edi
mov ecx, ebx
call fcn.0047cad4
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov byte [esi], 0xac
mov dword [esi + 8], str.coalesce
mov dword [esi + 0x14], eax
jmp 0x47d5f3
mov edx, ecx
mov ecx, dword [ebp - 0x14]
call fcn.004808e2
cmp dword [ebp - 8], 0
mov ecx, str.ambiguous_column_name
push dword [ebp + 0xc]
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x47d540
push dword [ebp + 8]
push ecx
push eax
push str._s:__s._s._s
push ebx
call fcn.0045421f
add esp, 0x18
jmp 0x47d569
cmp dword [ebp + 8], 0
je 0x47d55a
push dword [ebp + 8]
push eax
push str._s:__s._s
push ebx
call fcn.0045421f
add esp, 0x14
jmp 0x47d569
push eax
push str._s:__s
push ebx
call fcn.0045421f
add esp, 0x10
mov ecx, dword [ebx]
mov edx, esi
call fcn.00452d1e
mov eax, dword [ebp - 0x34]
mov byte [ebx + 0x11], 1
mov dword [ebp - 0x2c], 0x79
inc dword [eax + 0x14]
test dword [esi + 4], 0x810000
jne 0x47d5be
mov edx, dword [esi + 0xc]
mov edi, dword [ebp - 0x14]
test edx, edx
je 0x47d59d
mov ecx, edi
call fcn.0047fc48
mov edx, dword [esi + 0x10]
xor eax, eax
mov dword [esi + 0xc], eax
test edx, edx
je 0x47d5b2
mov ecx, edi
call fcn.0047fc48
xor eax, eax
or dword [esi + 4], 0x800000
mov dword [esi + 0x10], eax
jmp 0x47d5c0
xor eax, eax
cmp word [esi + 0x20], ax
mov eax, dword [ebp - 8]
jl 0x47d5e5
cmp eax, 1
jne 0x47d5e5
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x47d5e5
mov ecx, esi
call fcn.0047ca62
or dword [edi + 0x38], eax
or dword [edi + 0x3c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov byte [esi], cl
cmp eax, 1
jne 0x47d3cc
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [eax + 0x16c], ecx
je 0x47d61d
mov al, byte [esi]
cmp al, 0xa7
je 0x47d60c
cmp al, 0x4d
jne 0x47d61d
push dword [edi + 4]
mov edx, esi
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00489b80
pop ecx
pop ecx
mov eax, dword [ebp - 0x34]
jmp 0x47d625
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, edi
jne 0x47d622
jmp 0x47d47e