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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, ecx
mov dword [esp + 0x6c], edx
xor eax, eax
mov dword [esp + 0x18], ebx
push esi
xor esi, esi
mov dword [esp + 0x88], eax
xorps xmm0, xmm0
mov eax, dword [ebx]
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], esi
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x64], eax
cmp dword [ebx + 0x24], esi
jne 0x477afd
cmp byte [eax + 0x51], 0
jne 0x477afd
call fcn.00476560
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x477afd
mov eax, dword [ebx]
xor edx, edx
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4769fa
mov edx, edi
mov ecx, ebx
call fcn.0049a550
mov edx, eax
mov ecx, edx
test edx, edx
je 0x476a13
cmp byte [ecx + 8], 0x7c
jne 0x476a0c
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x476a00
mov eax, dword [edi + 0xc]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x40], eax
cmovne ecx, edx
mov dword [esp + 0x7c], ecx
test ecx, ecx
jne 0x476a43
push ecx
push ecx
mov edx, edi
mov ecx, ebx
call fcn.0047e180
add esp, 8
mov dword [esp + 0x2c], 0
test eax, eax
je 0x476a4b
mov dword [esp + 0x2c], 1
mov edx, edi
mov ecx, ebx
call fcn.00470310
test eax, eax
jne 0x477afb
cmp dword [esp + 0x7c], eax
mov edx, edi
mov ecx, ebx
setne al
push eax
call fcn.00476690
add esp, 4
test eax, eax
jne 0x477afb
mov ecx, dword [edi + 0x48]
mov esi, 0xfff0bdc0
mov edx, dword [esp + 0x64]
test ecx, ecx
je 0x476a9c
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
cmp dword [eax], ecx
je 0x476a9c
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x476a94
mov eax, dword [edx + 0x10]
mov ecx, esi
add ecx, ecx
mov edx, 9
push dword [eax + ecx*8]
mov ecx, ebx
push 0
push dword [edi]
call fcn.0046b840
add esp, 0xc
mov dword [esp + 0x50], eax
cmp eax, 1
je 0x477afb
mov ecx, dword [esp + 0x74]
xor edx, edx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], edx
mov dword [ecx + 0x34], eax
mov ecx, dword [ebx + 0x28]
inc ecx
mov dword [ebx + 0x28], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x476af8
inc ecx
inc edx
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x476ae8
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x40], 0
je 0x476b1d
mov ecx, dword [ebx + 0xf0]
mov eax, dword [edi]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ecx
mov dword [ebx + 0xf0], eax
jmp 0x476b39
mov eax, dword [esp + 0x84]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x94], eax
mov edi, dword [ebx + 8]
lea eax, [ebx + 0x74]
mov dword [esp + 0x14], eax
test edi, edi
je 0x476b5d
mov ecx, edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], edi
mov edx, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x30], ecx
jmp 0x476b96
cmp dword [eax], 0
jne 0x476b6e
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x476b6e
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00442f90
mov edi, eax
lea eax, [ebx + 0x74]
mov dword [esp + 0x48], edi
mov ecx, edi
mov dword [esp + 0x70], eax
mov edx, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x30], edi
test edi, edi
je 0x477add
cmp byte [ebx + 0x12], 0
jne 0x476ba3
or dword [edi + 0x98], 0x20
mov edx, dword [edx]
mov dword [esp + 0x3c], edx
test edx, edx
je 0x476bb1
mov eax, edx
jmp 0x476bdb
mov edx, dword [esp + 0x48]
mov eax, ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x54]
mov ecx, esi
mov dword [esp + 0x44], eax
mov eax, 1
shl eax, cl
test edx, eax
jne 0x476c03
mov ecx, dword [esp + 0x44]
bts edx, esi
mov dword [ecx + 0x54], edx
cmp esi, 1
jne 0x476c03
call fcn.00474670
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x50]
bts eax, esi
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0x2c]
or byte [ecx + 0x14], al
cmp dword [esp + 0x40], 0
je 0x476c46
push dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ecx, ebx
push 0
push 0
push dword [ebp + 8]
call fcn.00476770
mov eax, dword [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x88], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x98]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0xb0], xmm0
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], eax
call fcn.0045a5b0
test eax, eax
jne 0x477add
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
je 0x476d01
cmp byte [ebx + 0x12], 0
jne 0x476d01
cmp dword [ebx + 0x78], 0
jne 0x476d01
inc dword [ebx + 0x2c]
mov ecx, dword [edi + 0x6c]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x78], edx
cmp dword [edi + 0x70], ecx
jg 0x476cd2
push 0
push edx
push 0
mov edx, 0x46
mov ecx, edi
call fcn.00443360
add esp, 0xc
jmp 0x476d01
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x50], 0
mov ecx, dword [esp + 0x2c]
jne 0x476e9d
cmp dword [ebp + 8], 0
jne 0x476e9d
test ecx, ecx
jne 0x476e9d
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x38], ecx
jne 0x476e9d
push dword [eax]
mov edx, esi
mov ecx, ebx
push 1
push dword [eax + 0x1c]
call fcn.0046b920
mov eax, dword [esp + 0x28]
add esp, 0xc
test byte [eax + 0x24], 0x20
jne 0x476e1f
mov ecx, dword [eax]
mov edx, dword [esp + 0x78]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x4c], ecx
or ecx, 0xffffffff
test edx, edx
mov dword [esp + 0x7c], eax
cmovne ecx, edx
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x50], ecx
cmp dword [edi + 0x70], edx
jg 0x476d92
push ecx
push esi
push eax
mov edx, 0x89
mov ecx, edi
call fcn.00443360
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x30]
add eax, 0x68
jmp 0x476dc8
mov ebx, dword [esp + 0x7c]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edi + 0x68]
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
je 0x476de1
push dword [esp + 0x4c]
or edx, 0xffffffff
call fcn.00444300
add esp, 4
jmp 0x476e1b
test edx, edx
jns 0x476de9
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [eax]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x476e0c
push 0xffffffffffffffff
push dword [esp + 0x50]
mov edx, eax
mov ecx, edi
call fcn.00444540
add esp, 8
jmp 0x476e1b
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x476e1b
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xff
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
test eax, eax
je 0x476e8e
nop word [eax + eax]
mov ecx, dword [edi + 0x6c]
mov edx, dword [eax + 0x2c]
cmp dword [edi + 0x70], ecx
jg 0x476e50
push 0
push esi
push edx
mov edx, 0x89
mov ecx, edi
call fcn.00443360
add esp, 0xc
jmp 0x476e7b
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x476e30
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
lea esi, [eax + 0x6c]
add eax, 0x70
jmp 0x477a40
test byte [esp + 0xb0], 0x40
mov eax, 1
cmovne ecx, eax
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax*8 + 0x414]
movzx eax, ax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
test byte [eax + 0x24], 0x20
jne 0x476f55
mov edx, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
inc edx
mov dword [esp + 0xc], ecx
lea esi, [edi + 0x6c]
mov dword [ecx], edx
mov ecx, dword [esi]
lea eax, [edi + 0x70]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x68], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
cmp dword [eax], ecx
jg 0x476f1e
push 0
push edx
push 0
mov edx, 0x49
mov ecx, edi
call fcn.00443360
add esp, 0xc
jmp 0x477069
mov ebx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x477069
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x476f74
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x476f70
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x476f60
mov dword [esp + 0x3c], ecx
movzx edx, word [ecx + 0x32]
lea ecx, [ebx + 0x2c]
mov eax, dword [ecx]
mov dword [esp + 0x30], edx
movsx edx, dx
mov dword [esp + 0xc], ecx
lea esi, [eax + 1]
add eax, edx
mov dword [ecx], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x28], eax
inc eax
mov dword [ebx + 0x28], eax
lea eax, [edi + 0x70]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x58], esi
lea esi, [edi + 0x6c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x18], eax
cmp dword [eax], ecx
jg 0x476fd9
push 0
push edx
push dword [esp + 0x30]
mov edx, 0x70
mov ecx, edi
call fcn.00443360
add esp, 0xc
mov dword [esp + 0x8c], eax
jmp 0x47700b
mov ebx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 8]
mov ecx, ebx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
call fcn.00475240
mov dword [esp + 0x44], eax
test eax, eax
je 0x477069
mov edx, dword [esp + 0x50]
mov ecx, dword [edx]
cmp byte [ecx + 0x51], 0
je 0x477041
push eax
mov edx, 0xfffffff7
call fcn.00444300
add esp, 4
jmp 0x477057
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x44]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x2c], esi
lea eax, [edi + 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov edx, dword [esp + 0x74]
movzx eax, ax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
inc eax
push eax
push dword [esp + 0x58]
push 0
push 0
push dword [ebp + 8]
call fcn.004b01c0
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x477add
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x50], eax
mov al, byte [ecx + 0x31]
mov byte [esp + 0x13], al
mov byte [esp + 0x80], al
cmp al, 1
je 0x4770d2
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov edx, dword [esp + 0x78]
test edx, edx
je 0x47713d
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
cmp dword [eax], ecx
jg 0x477101
push 0
push 1
push edx
mov edx, 0x53
mov ecx, edi
call fcn.00443360
lea eax, [ebx + 0x2c]
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x477141
mov ebx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x53
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
jmp 0x477141
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x48]
movsx edx, cx
je 0x4771a6
xor ecx, ecx
mov dword [esp + 0x14], ecx
test edx, edx
jle 0x47719c
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x58]
mov edx, esi
add eax, ecx
push eax
mov eax, dword [ebx + 4]
movsx eax, word [eax + ecx*2]
mov ecx, edi
push eax
push dword [esp + 0x3c]
call fcn.00460c10
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x48]
inc ecx
movsx eax, dx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x477161
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
jmp 0x4771c7
inc dword [eax]
mov ecx, edi
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x3c]
mov dword [esp + 0x20], eax
call fcn.00460c10
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x477299
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
movzx eax, ax
mov dword [esp + 0x30], eax
lea eax, [esi + 2]
cdq
push edx
push eax
call fcn.0041ca80
mov ecx, eax
add esp, 8
mov dword [esp + 0x60], ecx
test ecx, ecx
jne 0x47720b
mov ecx, dword [esp + 0x44]
call fcn.004b0f60
jmp 0x477add
lea eax, [esi + 1]
push eax
push 1
push ecx
call fcn.004f13c0
mov edx, dword [esp + 0x6c]
add esp, 0xc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
mov byte [esi + edx + 1], 0
test eax, eax
js 0x477235
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x50]
test eax, eax
js 0x477243
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x47727b
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
jne 0x47727b
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x68]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.00444300
add esp, 4
mov word [esi], 0xaa
mov dword [esi + 0x10], 0
dec dword [ebx + 0x38]
mov edx, dword [esp + 0x5c]
mov eax, dword [ebx + 0x38]
add edx, 0x68
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc], edx
jmp 0x477407
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47738d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], 0
inc dword [ecx]
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
movsx ecx, dx
mov edx, eax
push ecx
push ecx
mov ecx, dword [ebx]
call fcn.0047efe0
mov ecx, dword [esp + 0x50]
add esp, 4
mov edx, 0x5c
push eax
push dword [esp + 0x1c]
movsx eax, cx
mov ecx, edi
push eax
push dword [esp + 0x68]
call fcn.00443830
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esi]
mov dword [esp + 0x54], ecx
cmp dword [eax], ecx
jg 0x477322
push dword [esp + 0x58]
mov edx, 0x84
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x30]
call fcn.00443360
mov edx, dword [esp + 0x68]
add esp, 0xc
mov ecx, eax
add edx, 0x68
jmp 0x47735e
mov ebx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi], eax
lea edx, [edi + 0x68]
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x54]
mov eax, dword [edi]
mov dword [esp + 0xc], edx
cmp byte [eax + 0x51], 0
jne 0x4773fa
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x48]
movsx ebx, si
mov esi, dword [esp + 0x2c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov dword [esp + 0xc], edx
jmp 0x4773f6
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x30], 1
cmp dword [eax], ecx
jg 0x4773c2
push 0
push edx
push dword [esp + 0x70]
mov edx, 0x93
mov ecx, edi
call fcn.00443360
mov eax, dword [esp + 0x68]
add esp, 0xc
add eax, 0x68
mov dword [esp + 0xc], eax
jmp 0x4773fa
mov ebx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
call fcn.004b0f60
mov edx, dword [esp + 0xc]
cmp dword [esp + 0x40], 0
jne 0x4774dc
cmp byte [esp + 0x13], 2
mov dword [esp + 0x40], 0
jne 0x47747b
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
cmp dword [eax], ecx
jg 0x47744a
push 0
push 0
push 0
mov edx, 0x11
mov ecx, edi
call fcn.00443360
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x47747b
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
push dword [esp + 0x68]
push dword [esp + 0x40]
push 8
push 0x62
call fcn.004833b0
mov al, byte [esp + 0x2b]
add esp, 0x18
cmp al, 2
jne 0x4774e0
mov eax, dword [edi]
mov edx, dword [esi]
cmp byte [eax + 0x51], 0
je 0x4774be
mov eax, 0x57bbe8
mov dword [eax + 8], edx
jmp 0x4774e8
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4774e8
mov al, byte [esp + 0x13]
test al, al
je 0x4775a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp dword [eax + 0x38], 0
jne 0x47773c
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x34]
cmp byte [eax + ecx], 0
je 0x47773c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x54], ecx
cmp dword [eax], ecx
jg 0x47753d
push dword [esp + 0x14]
mov edx, 0x1c
mov ecx, edi
push dword [esp + 0x50]
push dword [esp + 0x2c]
call fcn.00443360
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, eax
jmp 0x47757a
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x54]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x477738
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
cwde
mov dword [ecx + 0x10], eax
jmp 0x477738
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x38], ecx
mov eax, dword [eax]
je 0x4776dc
cmp eax, ecx
jg 0x4775dc
push 0
push 0
push dword [esp + 0x30]
mov edx, 0x24
mov ecx, edi
call fcn.00443360
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x38], eax
jmp 0x477611
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov ebx, dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x20]
cmp dword [eax + 0x38], 0
je 0x477685
cmp dword [esp + 0x6c], ecx
jg 0x47764f
push dword [esp + 0x14]
mov edx, 0x5a
mov ecx, edi
push 0
push dword [esp + 0x30]
call fcn.00443360
add esp, 0xc
jmp 0x477738
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x477738
cmp dword [esp + 0x6c], ecx
jg 0x4776a9
push 0
push dword [esp + 0x18]
mov edx, 0x7f
mov ecx, edi
push dword [esp + 0x30]
call fcn.00443360
add esp, 0xc
jmp 0x477738
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x477738
cmp eax, ecx
jg 0x4776fb
push dword [esp + 0x14]
mov edx, 0x29
mov ecx, edi
push 0
push dword [esp + 0x70]
call fcn.00443360
add esp, 0xc
jmp 0x477734
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x29
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x38], 0
je 0x4778b5
mov eax, dword [edx + 0x40]
mov dword [esp + 0x40], eax
test eax, eax
je 0x47776f
mov edx, dword [esp + 0x64]
nop dword [eax]
cmp dword [eax], edx
je 0x47776b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x477760
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.004a2270
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
cmp byte [esp + 0x13], 1
mov byte [ecx + 0x15], 1
jne 0x4777f7
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
cmp dword [eax], ecx
jg 0x4777b5
push 0
push 0
push dword [esp + 0x3c]
mov edx, 0x75
mov ecx, edi
call fcn.00443360
add esp, 0xc
jmp 0x4777ea
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
jne 0x4777f7
mov byte [ebx + 0x14], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
cmp dword [eax], edx
jg 0x47781c
push dword [esp + 0x14]
mov edx, 0xa
mov ecx, edi
push 1
push 0
call fcn.00443360
add esp, 0xc
mov edx, eax
jmp 0x477855
mov ebx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x47788a
test edx, edx
jns 0x477864
mov edx, dword [esi]
dec edx
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x40]
je 0x4778a5
push 0xfffffffffffffff4
mov edx, ecx
mov ecx, edi
push eax
call fcn.00444540
add esp, 8
mov edx, dword [esp + 0xc]
mov eax, dword [esi]
test eax, eax
jle 0x4778ee
lea ecx, [eax + eax*4]
mov eax, dword [edx]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4778ee
test eax, eax
je 0x47788e
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf4
inc dword [eax + 0xc]
jmp 0x47788e
push dword [esp + 0x50]
cmp byte [ebx + 0x12], 0
push dword [esp + 0x84]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x40]
push dword [esp + 0x28]
push dword [esp + 0xa0]
push ecx
push dword [esp + 0x9c]
mov ecx, ebx
call fcn.00477b80
add esp, 0x24
cmp byte [esp + 0x13], 0
je 0x477935
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x4c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x47791f
push edx
mov edx, edi
call fcn.00443d20
mov ecx, dword [esp + 0x48]
add esp, 4
call fcn.004b0f60
jmp 0x477a44
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x44]
call fcn.004b0f60
jmp 0x477a44
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, dword [eax]
je 0x4779ac
mov edx, dword [esp + 0x38]
inc edx
cmp eax, ecx
jg 0x47796c
push 0
push edx
push dword [esp + 0x30]
mov edx, 5
mov ecx, edi
call fcn.00443360
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x477a06
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x38]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
inc ebx
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x477a06
cmp eax, ecx
jg 0x4779cd
push 0
push dword [esp + 0x3c]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.00443360
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x477a06
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x38]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [esp + 0x80], ecx
cmp byte [eax + 0x51], 0
je 0x477a1e
mov eax, 0x57bbe8
jmp 0x477a39
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x38]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x12], 0
jne 0x477a5d
cmp dword [ebx + 0x78], 0
jne 0x477a5d
cmp dword [ebx + 0x70], 0
je 0x477a5d
mov ecx, ebx
call fcn.0047f500
mov edx, dword [esp + 0x78]
test edx, edx
je 0x477add
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
cmp dword [eax], ecx
jg 0x477a85
push 0
push 1
push edx
mov edx, 0x51
mov ecx, edi
call fcn.00443360
add esp, 0xc
jmp 0x477ab3
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, edi
call fcn.00445a70
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x477add
mov ecx, dword [edi + 0x74]
mov edx, str.rows_deleted
push 0
push 1
push 0xffffffffffffffff
call fcn.00442270
add esp, 0xc
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x477afd
mov ecx, dword [esp + 0x94]
mov dword [eax + 0xf0], ecx
jmp 0x477afd
xor esi, esi
mov ebx, dword [esp + 0x64]
mov ecx, ebx
mov edx, dword [esp + 0x74]
call fcn.00473d20
mov eax, dword [ebp + 8]
test eax, eax
je 0x477b1c
mov edx, eax
mov ecx, ebx
call fcn.0045bfa0
test esi, esi
je 0x477b6b
test ebx, ebx
je 0x477b62
cmp dword [ebx + 0x1e8], 0
je 0x477b3d
mov edx, esi
mov ecx, ebx
call fcn.0041c6a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebx + 0x138]
jb 0x477b62
cmp esi, dword [ebx + 0x13c]
jae 0x477b62
mov eax, dword [ebx + 0x134]
mov dword [esi], eax
mov dword [ebx + 0x134], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041c630
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret