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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
movzx eax, word [ecx]
cmp ax, 0x40
push esi
push edi
jle 0x475f6f
push 0x40
push str.at_most__d_tables_in_a_join
mov edi, ebx
call fcn.004259e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
je 0x475f7f
mov dword [esp + 0x20], 1
jmp 0x475f86
movsx edx, ax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
mov esi, dword [ebx]
shl eax, 6
add eax, 0x2f
and eax, 0xfffffff8
lea ecx, [eax + 0x264]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
call fcn.00423c10
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
je 0x475fc7
mov eax, dword [esp + 0x3c]
add eax, 0x264
push eax
push 0
push edi
call fcn.004957a0
add esp, 0xc
mov eax, esi
cmp byte [eax + 0x1e], 0
je 0x475fe2
push edi
push eax
call fcn.004239e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [edi], ebx
mov dword [edi + 8], ecx
call fcn.0043d070
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x14], eax
mov ax, word [ebp + 0x18]
lea esi, [edi + edx]
mov word [edi + 4], ax
push 0x104
lea eax, [esi + 0x160]
mov dword [edi + 0x1c], esi
fld qword [ebx + 0x1c0]
push 0
fstp qword [edi + 0x20]
push eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
call fcn.004957a0
mov ecx, dword [esp + 0x58]
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 4], ecx
push eax
lea ecx, [esp + 0x64]
lea edx, [esi + 0x20]
push ecx
mov dword [esi], ebx
mov dword [esi + 0x18], 8
mov dword [esi + 0x1c], edx
mov dword [esp + 0x68], 0x44d670
mov dword [esp + 0x70], ebx
call fcn.00447f00
mov edx, dword [ebp + 0x10]
push 0x45
push edx
push esi
call fcn.00471770
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x4760b0
cmp dword [esp + 0x20], 0
je 0x47609d
mov eax, dword [ebp + 0x10]
call fcn.0044aef0
test eax, eax
je 0x4760b0
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0x10]
push 8
push eax
push ecx
push ebx
call fcn.0044dcc0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp dx, word [ecx]
mov dword [esp + 0x24], 0
jge 0x476113
mov edi, dword [esp + 0x4c]
lea ebx, [ecx + 0x14]
lea esp, [esp]
mov eax, dword [edi]
mov edx, dword [ebx + 0xc]
mov dword [edi + eax*4 + 4], edx
inc dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x476100
test byte [eax + 0x22], 0x10
je 0x476100
mov ecx, dword [esp + 0x24]
mov eax, 1
xor edx, edx
call fcn.004ab7b0
or dword [esi + 8], eax
or dword [esi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
movsx edx, word [ecx]
inc eax
add ebx, 0x38
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x4760d0
mov edi, dword [esi + 0x14]
sub edi, 1
js 0x476130
mov ebx, dword [ebp + 0xc]
mov edi, edi
push edi
push esi
push ebx
call fcn.004724e0
add esp, 0xc
sub edi, 1
jns 0x476120
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x1e], 0
jne 0x4766c2
mov ebx, dword [esp + 0x20]
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
add eax, 0x28
cmp ebx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jle 0x47655e
dec ebx
mov dword [esp + 0x74], ebx
mov edx, dword [esp + 0x74]
fld qword [0x4c9890]
xor eax, eax
xor ecx, ecx
cmp dword [esp + 0x14], edx
mov esi, eax
setl cl
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
fstp qword [esp + 0x88]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
cmp ecx, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x48], ecx
jl 0x476437
cmp dword [esp + 0x44], 0
jge 0x476433
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [ebx*8]
sub eax, ebx
cmp ebx, dword [esp + 0x20]
lea edx, [ecx + eax*8 + 8]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x10], edx
jge 0x476428
mov ecx, dword [esp + 0x34]
mov eax, ebx
shl eax, 6
lea edx, [eax + ecx + 0x64]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x10]
test byte [eax + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x40], eax
cmp ebx, dword [esp + 0x14]
je 0x476255
test eax, eax
jne 0x476428
mov edx, dword [esp + 0x4c]
xor ecx, ecx
cmp dword [edx], ecx
jle 0x47627c
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x18]
lea eax, [edx + 4]
lea esp, [esp]
cmp dword [eax], esi
je 0x4762a3
inc ecx
add eax, 4
cmp ecx, dword [edx]
jl 0x476270
xor esi, esi
xor edi, edi
mov eax, esi
and eax, dword [esp + 0x28]
mov ecx, edi
and ecx, dword [esp + 0x2c]
or eax, ecx
jne 0x4762b5
cmp ebx, dword [esp + 0x14]
jne 0x47640f
inc dword [esp + 0x14]
jmp 0x47640f
mov eax, 1
xor edx, edx
call fcn.004ab7b0
mov esi, eax
mov edi, edx
jmp 0x476280
cmp dword [esp + 0x48], 0
je 0x4762c2
mov ecx, esi
mov edx, edi
jmp 0x4762ca
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x24], 0
jne 0x4762dc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4762dc
mov eax, dword [eax]
jmp 0x4762de
xor eax, eax
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x34], 0
jne 0x4762ec
inc dword [esp + 0x58]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0xc]
test byte [ebx + 0x22], 0x10
je 0x47632b
mov ebx, dword [esp + 0x5c]
push ebx
lea ebx, [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [ebp + 8]
push ebx
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00473ec0
add esp, 0x28
jmp 0x476356
lea ebx, [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [ebp + 8]
push ebx
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.004740b0
add esp, 0x24
cmp dword [esp + 0x48], 0
mov edx, dword [esp + 0xa0]
je 0x476374
test edx, 0xf3000
jne 0x476374
or dword [esp + 0x60], esi
or dword [esp + 0x64], edi
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
and ecx, dword [esp + 0x2c]
and eax, ebx
or eax, ecx
jne 0x476404
mov ecx, dword [esp + 0x44]
test ecx, ecx
jl 0x4763aa
and esi, dword [esp + 0x60]
and edi, dword [esp + 0x64]
mov eax, esi
or eax, edi
jne 0x4763aa
test edx, 0xf3000
je 0x476404
cmp dword [esp + 0x58], 0
je 0x4763c3
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
je 0x4763c3
test edx, 0xf3000
je 0x476404
test ecx, ecx
jl 0x47647d
fld qword [esp + 0x88]
fld qword [esp + 0xb0]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x476479
fcompp
fnstsw ax
test ah, 0x41
jp 0x476404
fld qword [esp + 0x90]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
je 0x47647d
mov ebx, dword [esp + 0x54]
cmp dword [esp + 0x40], 0
jne 0x476428
add dword [esp + 0x5c], 0x40
add dword [esp + 0x10], 0x38
inc ebx
cmp ebx, dword [esp + 0x20]
mov dword [esp + 0x54], ebx
jl 0x476233
sub dword [esp + 0x48], 1
jns 0x4761f1
mov esi, dword [esp + 0x78]
test esi, 0x1000000
je 0x476448
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x7c]
and dword [esp + 0x3c], esi
mov eax, dword [esp + 0x80]
mov dword [edi], esi
mov dword [edi + 4], edx
mov dword [edi + 8], eax
test esi, 0x200f0000
je 0x47649c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x14], ecx
inc dword [eax + 0x44]
jmp 0x4764a3
fstp st(1)
fstp st(0)
mov ebx, dword [esp + 0x54]
mov ecx, 0xa
lea esi, [esp + 0xa0]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x44], ebx
jmp 0x476408
mov dword [edi + 0x14], 0xffffffff
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4764d4
mov edi, dword [ebp + 0xc]
lea eax, [ebx*8]
sub eax, ebx
mov edi, dword [edi + eax*8 + 0x20]
lea eax, [edx + 4]
cmp dword [eax], edi
je 0x47650c
inc ecx
add eax, 4
cmp ecx, dword [edx]
jl 0x4764c4
mov edi, dword [esp + 0x1c]
xor eax, eax
xor edx, edx
fld1
mov ecx, dword [ebp + 8]
fld qword [esp + 0x90]
not eax
and dword [esp + 0x28], eax
fcom st(1)
not edx
and dword [esp + 0x2c], edx
mov byte [edi + 0x28], bl
fnstsw ax
fstp st(1)
test ah, 1
jne 0x47651e
fmul qword [ecx + 0x1c0]
fstp qword [ecx + 0x1c0]
jmp 0x476520
mov eax, 1
xor edx, edx
call fcn.004ab7b0
mov edi, dword [esp + 0x1c]
jmp 0x4764d8
fstp st(0)
mov eax, dword [ebp + 0xc]
lea edx, [ebx*8]
sub edx, ebx
mov eax, dword [eax + edx*8 + 0x3c]
test eax, eax
je 0x476540
test esi, 0xf0000
je 0x4766b0
mov eax, dword [esp + 0x24]
inc eax
add edi, 0x40
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
jl 0x476173
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x4766c2
mov ecx, dword [esp + 0x38]
cmp byte [ecx + 0x1e], 0
jne 0x4766c2
mov eax, dword [esp + 0x3c]
and eax, 0x4000000
je 0x476591
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x476591
mov dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x4765ac
test eax, eax
je 0x4765ac
mov eax, dword [esp + 0x34]
mov byte [eax + 6], 1
add eax, 0x28
and dword [eax], 0xff7fffff
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4765bb
mov esi, eax
cmp dword [esi + 0x15c], 0
jne 0x4765ff
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x4765e8
mov eax, dword [esi]
call fcn.0043cd60
mov edi, eax
mov dword [esi + 0xc], eax
test edi, edi
je 0x4765ff
push 0x87
call fcn.0043cec0
add esp, 4
push 0
push 0
push 1
mov eax, edi
call fcn.0043cf70
add esp, 0xc
inc eax
mov dword [esi + 0x15c], eax
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
add eax, 0x28
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x476b68
jmp 0x476630
mov edx, dword [ebp + 8]
cmp byte [edx + 0x1e8], 2
mov edi, dword [esp + 0x38]
jne 0x476828
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x28]
mov edx, dword [ebp + 0xc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*8 + 0xc]
lea ebx, [edx + ecx*8 + 8]
push eax
push str.TABLE__s
mov esi, edi
call fcn.00424ea0
mov ebx, dword [ebx + 8]
add esp, 8
mov esi, eax
test ebx, ebx
je 0x47668d
push ebx
push esi
push str._s_AS__s
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0x10
mov esi, eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
test eax, 0x20000000
je 0x4766e9
push esi
push str._s_WITH_AUTOMATIC_INDEX
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0xc
jmp 0x476760
mov edx, dword [eax]
push edx
push str.cannot_use_index:__s
mov edi, ecx
call fcn.004259e0
add esp, 8
mov eax, dword [esp + 0x34]
fld qword [eax + 0x20]
mov edx, dword [ebp + 8]
push eax
fstp qword [edx + 0x1c0]
mov eax, dword [esp + 0x3c]
push eax
call fcn.00475e90
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0xf0000
je 0x476709
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push edx
push esi
push str._s_WITH_INDEX__s
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0x10
jmp 0x476760
test eax, 0x10000000
je 0x476723
push esi
push str._s_VIA_MULTI_INDEX_UNION
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0xc
jmp 0x476760
test eax, 0x3000
je 0x47673d
push esi
push str._s_USING_PRIMARY_KEY
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0xc
jmp 0x476760
test eax, 0x8000000
je 0x476762
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
push esi
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0x14
mov esi, eax
test dword [ebx], 0x1000000
je 0x47677d
push esi
push str._s_ORDER_BY
push esi
mov eax, edi
call fcn.00424ec0
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x18]
movzx eax, byte [ebx + 0x28]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
mov dword [esp + 0x40], eax
jg 0x4767a5
mov edi, ecx
call fcn.0043cde0
mov ecx, edi
test eax, eax
je 0x4767a5
mov ebx, 1
jmp 0x4767d4
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x89
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ecx + 0x62], dl
mov edx, dword [ecx + 0x14]
mov edi, dword [ecx]
mov eax, ebx
test edx, edx
je 0x47681e
cmp byte [edi + 0x1e], 0
jne 0x47681e
test ebx, ebx
jge 0x4767ed
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [edx + eax*4 + 0x10]
lea ebx, [edx + eax*4]
movsx eax, byte [ebx + 1]
call fcn.0043d330
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x476815
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x47682c
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x47682c
mov ecx, esi
or eax, 0xffffffff
call fcn.0043d330
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ecx + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
lea eax, [eax + edx*8 + 8]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xfff0bdc0
test edx, edx
je 0x476888
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test ecx, ecx
jle 0x476888
mov eax, dword [eax + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x476884
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x476878
mov dword [esp + 0x14], ebx
test byte [esi + 0x22], 2
jne 0x476a00
cmp dword [esi + 0x1c], 0
jne 0x476a00
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, 0x8000000
je 0x476970
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x4768c3
mov eax, dword [esp + 0x38]
cmp dword [ebx], eax
je 0x4768c3
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4768b8
mov ecx, dword [esp + 0x10]
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x40], edx
jg 0x4768ea
call fcn.0043cde0
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4768ea
mov eax, 1
jmp 0x476917
mov ecx, dword [edi + 0x14]
inc dword [edi + 0xc]
mov edx, dword [esp + 0x40]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x7f
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x62], cl
mov eax, esi
mov esi, dword [edi + 0x14]
mov edx, dword [edi]
test esi, esi
je 0x476a00
cmp byte [edx + 0x1e], 0
jne 0x476a00
test eax, eax
jge 0x476936
mov eax, dword [edi + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
mov edi, edx
call fcn.0043d330
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x476961
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x476a00
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x476a00
test eax, 0x800000
jne 0x4769e7
test byte [ebp + 0x18], 0x10
jne 0x4769e7
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp byte [ebx + 6], cl
setne cl
add ecx, 0x26
push ecx
mov ecx, dword [eax + 0x18]
push edx
push ecx
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.0045d470
add esp, 0xc
cmp byte [ebx + 6], 0
jne 0x476a00
cmp dword [esi + 8], 0x40
jge 0x476a00
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x4769d2
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x4769c5
mov eax, dword [edi + 0xc]
push edx
dec eax
push edi
mov ecx, 0xfffffff2
call fcn.0043d470
add esp, 8
jmp 0x476a00
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
call fcn.00451cc0
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, 0x20000000
je 0x476a34
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.00473250
add esp, 0x18
jmp 0x476b0a
test ecx, 0xf0000
je 0x476b0a
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 8]
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.00456ad0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
mov esi, dword [ecx + 0xc]
mov ebx, dword [edi + 0x14]
add esp, 8
cmp dword [ecx + 0x10], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jg 0x476a84
mov edi, ecx
call fcn.0043cde0
mov ecx, edi
test eax, eax
je 0x476a84
mov esi, 1
xor ebx, ebx
jmp 0x476ab3
mov edx, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
xor ebx, ebx
mov byte [eax], 0x26
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ecx + 0x62], bl
mov edx, dword [ecx + 0x14]
mov edi, dword [ecx]
mov eax, esi
cmp edx, ebx
je 0x476afc
cmp byte [edi + 0x1e], 0
jne 0x476afc
cmp esi, ebx
jge 0x476acc
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [edx + eax*4 + 0x10]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
call fcn.0043d330
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x476af3
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0
jmp 0x476b0a
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x476b0a
mov ecx, dword [esp + 0x3c]
mov eax, 0xfffffff0
call fcn.0043d330
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00456620
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x476b40
mov esi, dword [esp + 0x10]
mov esi, dword [esi + 0x18]
add edx, 4
nop
cmp dword [edx], esi
je 0x476bbf
inc ecx
add edx, 4
cmp ecx, eax
jl 0x476b30
xor eax, eax
xor edx, edx
add dword [esp + 0x1c], 0x40
not eax
and dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
not edx
and dword [esp + 0x2c], edx
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x476630
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
cmp byte [edx + 0x1e], 0
jne 0x4766c2
xor esi, esi
or eax, 0xffffffff
or edx, 0xffffffff
cmp dword [esp + 0x20], esi
mov ebx, ecx
jle 0x476bb6
lea edi, [ebx + 0x48]
push edx
push eax
mov eax, dword [ebp + 0x18]
push eax
push esi
push ebx
call fcn.00474df0
mov ecx, dword [edi]
inc esi
add esp, 0x14
add edi, 0x40
cmp esi, dword [esp + 0x20]
mov dword [ebx + 0x10], ecx
jl 0x476b97
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
xor edx, edx
call fcn.004ab7b0
jmp 0x476b44