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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x64]
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [ebx]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov esi, dword [eax]
mov dword [esp + 0x10], esi
mov byte [esp + 0xb], 0
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
cmp byte [ecx + 0x51], 0
jne 0x478b9f
mov ecx, dword [esp + 0x6c]
push ebp
mov ebp, dword [ebx + 0x14]
push edi
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ebp, ecx
mov dword [esp + 0x14], ecx
lea ecx, [eax + 0x1e8]
mov dword [esp + 0x20], ecx
mov edi, dword [ebp]
mov dword [esp + 0x5c], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x478073
push eax
push ecx
call fcn.004e65f0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x478083
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
movzx eax, byte [edi]
mov dword [esp + 0x24], eax
cmp eax, 0x31
jne 0x4780c6
push edi
push esi
call fcn.004afcf0
add esp, 8
test eax, eax
jne 0x478b9d
test dword [edi + 4], 0x800
push dword [edi + 0x14]
mov eax, dword [esp + 0x24]
push eax
je 0x4780bc
call fcn.0047a6d0
add esp, 8
jmp 0x4780f2
call fcn.004e6560
add esp, 8
jmp 0x4780f2
cmp eax, 0x32
jne 0x4780db
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
jmp 0x4780f8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4780ee
push eax
push ecx
call fcn.004e65f0
add esp, 8
jmp 0x4780f2
xor eax, eax
xor edx, edx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
mov eax, dword [esp + 0x20]
push edi
push eax
mov dword [eax], 0
call fcn.004e65f0
mov dword [esp + 0x34], edx
add esp, 8
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
cmp dword [edx], 0
je 0x478126
mov ecx, 0x1000
or word [ebp + 0xa], cx
test byte [edi + 4], 1
je 0x4781be
mov edx, dword [edx + 4]
xor ecx, ecx
test edx, edx
jle 0x478154
mov eax, dword [esp + 0x20]
add eax, 8
movsx ebx, word [edi + 0x24]
cmp dword [eax], ebx
mov ebx, dword [esp + 0x70]
je 0x4781aa
inc ecx
add eax, 4
cmp ecx, edx
jl 0x478140
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 0x28]
or dword [esp + 0x2c], edx
or eax, ecx
mov dword [esp + 0x38], ecx
add dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
adc dword [esp + 0x3c], 0xffffffff
shrd dword [esp + 0x30], eax, 1
shr eax, 1
cmp eax, edx
jb 0x4781ba
ja 0x478194
cmp dword [esp + 0x30], ecx
jb 0x4781ba
push str.ON_clause_references_tables_to_its_right
push esi
call fcn.004af3d0
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x58
ret
mov eax, 1
xor edx, edx
call fcn.00402530
mov ecx, eax
jmp 0x478158
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x2c], eax
xor eax, eax
mov word [ebp + 0xc], ax
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], 0xffffffff
mov dword [ebp + 0x10], 0xffffffff
cmp eax, 0x31
je 0x47832f
cmp eax, 0x35
jl 0x4781f7
cmp eax, 0x39
jle 0x47832f
cmp eax, 0x32
je 0x47832f
cmp eax, 0x2d
je 0x47832f
mov al, byte [edi]
cmp al, 0x30
jne 0x478308
cmp byte [ebx + 8], 0x2c
jne 0x478308
mov eax, dword [edi + 0x14]
add eax, 4
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], eax
nop
mov eax, dword [eax]
test eax, eax
je 0x47824b
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.004798e0
add esp, 0x10
mov ebp, eax
jmp 0x47824d
xor ebp, ebp
mov eax, dword [edi + 0xc]
test eax, eax
je 0x478267
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.004798e0
add esp, 0x10
jmp 0x478269
xor eax, eax
push ebp
push eax
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + 0x51ecbc]
push eax
push esi
call fcn.004c41f0
add esp, 0x10
test eax, eax
je 0x478295
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 3
push eax
push ebx
call fcn.004f3c70
mov esi, eax
push esi
push ebx
push dword [esp + 0x80]
call fcn.00477fe0
mov ecx, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov eax, dword [esp + 0x8c]
add edx, edx
mov ebp, dword [esp + 0x2c]
add esp, 0x18
mov esi, dword [esp + 0x14]
add ebp, ecx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov ax, word [ecx + esi + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x44], ecx
inc byte [eax + esi + 0xe]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x18]
add eax, 0x14
mov dword [esp + 0x50], eax
cmp ecx, 2
jl 0x478230
jmp 0x478523
cmp al, 0x2b
jne 0x478523
push dword [esp + 0x74]
push ebx
push dword [esp + 0x74]
call fcn.00478bb0
mov ebp, dword [ebx + 0x14]
add esp, 0xc
mov eax, dword [esp + 0x14]
add ebp, eax
jmp 0x478523
push dword [edi + 0xc]
call fcn.004b40a0
push dword [edi + 0x10]
mov dword [esp + 0x38], eax
call fcn.004b40a0
mov edx, dword [ebp + 0x20]
add esp, 8
mov ecx, dword [ebp + 0x24]
and edx, dword [esp + 0x40]
and ecx, dword [esp + 0x44]
or edx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], 0x1fff
je 0x47836c
mov dword [esp + 0x50], 0x800
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x478383
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4 - 0x10]
jmp 0x478387
mov eax, dword [esp + 0x30]
push dword [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x80]
call fcn.0047a220
add esp, 0x18
test eax, eax
je 0x4783cf
mov eax, dword [esp + 0x60]
push dword [esp + 0x24]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x1c], eax
call fcn.00496b20
add esp, 4
and ax, word [esp + 0x50]
mov word [ebp + 0xc], ax
mov eax, dword [esp + 0x24]
mov ecx, 0x800
cmp eax, 0x2d
jne 0x4783e1
or word [ebp + 0xa], cx
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x478523
push eax
push ecx
lea eax, [esp + 0x68]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [esp + 0x80]
call fcn.0047a220
add esp, 0x18
test eax, eax
je 0x478523
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x58], 0
jl 0x47857b
mov ebp, dword [esp + 0x1c]
push 0
push edi
push ebp
call fcn.004b2af0
add esp, 0xc
mov dword [esp + 0x30], eax
cmp byte [ebp + 0x51], 0
je 0x478457
test eax, eax
je 0x478b9d
push eax
push ebp
call fcn.004b2a40
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x58
ret
push 3
push eax
push ebx
call fcn.004f3c70
add esp, 0xc
test eax, eax
je 0x478b9d
push dword [esp + 0x74]
lea ebp, [eax + eax*2]
shl ebp, 4
add ebp, dword [ebx + 0x14]
push eax
push ebx
mov dword [esp + 0x60], ebp
call fcn.00493bb0
add esp, 0xc
cmp dword [esp + 0x24], 0x2d
jne 0x478496
mov eax, 0x800
or word [ebp + 0xa], ax
mov ebp, dword [ebx + 0x14]
add ebp, dword [esp + 0x14]
push dword [esp + 0x30]
push esi
or word [ebp + 0xa], 8
call fcn.004eb330
add esp, 8
test eax, eax
je 0x4784c0
mov eax, 0x800
or word [ebp + 0xc], ax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.00479730
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
or ecx, dword [esp + 0x44]
or word [edx + 0xa], ax
mov eax, dword [esp + 0x68]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x40]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 0x24], ecx
movzx eax, byte [eax]
push eax
call fcn.00496b20
add ax, word [esp + 0x64]
add esp, 0xc
and ax, word [esp + 0x50]
mov word [edx + 0xc], ax
cmp byte [ebx + 8], 0x2c
jne 0x478ae2
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
push esi
call fcn.00491f80
add esp, 0x14
test eax, eax
je 0x4787eb
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x47858a
push 0
push 0
push ecx
push dword [esp + 0x28]
call fcn.004798e0
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x44], eax
jmp 0x478592
mov eax, edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x30], eax
jmp 0x4784c4
mov dword [esp + 0x44], 0
cmp dword [esp + 0x4c], 0
je 0x4785fa
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x4785fa
mov eax, 0x400
or word [ebp + 0xa], ax
xor ebp, ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x54], eax
mov cl, byte [eax]
test cl, cl
je 0x4785fa
mov esi, dword [esp + 0x34]
mov ebx, eax
mov edi, dword [esp + 0x44]
movzx edx, cl
movzx eax, byte [edx + 0x523970]
and al, 0x20
not al
and al, cl
mov byte [ebx], al
mov ecx, dword [edi + 8]
movzx eax, byte [edx + 0x523870]
mov byte [ecx + ebp], al
inc ebp
mov ebx, dword [esi + 8]
add ebx, ebp
mov cl, byte [ebx]
test cl, cl
jne 0x4785c3
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x44]
cmp byte [ecx + 0x51], 0
jne 0x478682
mov edx, dword [ebp + 8]
test edx, edx
jne 0x478617
xor ecx, ecx
jmp 0x478631
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x70], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x478620
sub ecx, dword [esp + 0x70]
and ecx, 0x3fffffff
lea eax, [edx - 1]
mov dl, byte [eax + ecx]
add eax, ecx
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x70], eax
je 0x47866c
xor ecx, ecx
movzx eax, dl
cmp dl, 0x40
sete cl
mov dl, byte [eax + 0x523870]
dec ecx
and ecx, dword [esp + 0x48]
inc dl
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax], dl
jmp 0x47868a
mov eax, dword [esp + 0x48]
inc dl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x70]
mov byte [eax], dl
jmp 0x47868a
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x70], str.NOCASE
jne 0x4786a1
mov dword [esp + 0x70], 0x523b20
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4786b9
push 0
push 0
push eax
push ecx
call fcn.004798e0
add esp, 0x10
jmp 0x4786bb
xor eax, eax
push dword [esp + 0x34]
push dword [esp + 0x74]
push eax
push esi
call fcn.004af6a0
add esp, 0xc
push eax
push 0x39
push esi
call fcn.004c41f0
add esp, 0x10
test eax, eax
je 0x4786ee
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
push eax
push ebx
call fcn.004f3c70
push eax
push ebx
push dword [esp + 0x80]
mov dword [esp + 0x74], eax
call fcn.00477fe0
mov eax, dword [esp + 0x70]
add esp, 0x18
test eax, eax
je 0x47872a
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.004798e0
add esp, 0x10
jmp 0x47872c
xor eax, eax
push ebp
push dword [esp + 0x74]
push eax
push esi
call fcn.004af6a0
add esp, 0xc
push eax
push 0x38
push esi
call fcn.004c41f0
add esp, 0x10
test eax, eax
je 0x47875c
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
push eax
push ebx
call fcn.004f3c70
push eax
push ebx
push dword [esp + 0x80]
mov dword [esp + 0x70], eax
call fcn.00477fe0
mov ebp, dword [ebx + 0x14]
add esp, 0x18
mov eax, dword [esp + 0x14]
add ebp, eax
cmp dword [esp + 0x50], 0
je 0x4787eb
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x74]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebx + 0x14]
add edx, edx
mov dword [ecx + edx*8 + 0x10], esi
mov ecx, dword [ebx + 0x14]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 0xe]
mov ecx, esi
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x18]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x14]
add edx, edx
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 0xe]
cmp byte [ebx + 8], 0x2c
jne 0x478ae2
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0
push eax
lea eax, [esp + 0x1b]
push eax
push edi
push dword [esp + 0x2c]
call fcn.00491960
mov edx, eax
add esp, 0x14
test edx, edx
jle 0x4789eb
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov dword [esp + 0x70], ecx
jmp 0x478844
mov esi, dword [esp + 0x18]
dec edx
mov dword [esp + 0x5c], edx
test eax, eax
je 0x478868
push eax
push dword [esp + 0x24]
call fcn.004e65f0
mov ecx, dword [esp + 0x78]
add esp, 8
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
jmp 0x478878
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
test ecx, ecx
je 0x47888b
push ecx
push dword [esp + 0x24]
call fcn.004e65f0
add esp, 8
jmp 0x47888f
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x4c]
or eax, edx
jne 0x4789cf
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4788bc
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.004798e0
add esp, 0x10
mov ebp, eax
jmp 0x4788be
xor ebp, ebp
push 0
push 0x34
push dword [esi]
call fcn.004ad310
mov esi, eax
add esp, 0xc
test esi, esi
je 0x478923
push 0x34
push 0
push esi
call sub.MSVCRT.dll_memset
or eax, 0xffffffff
mov byte [esi], 0x2e
add esp, 0xc
mov word [esi + 0x22], ax
test ebp, ebp
je 0x4788fb
mov dword [esi + 0x10], ebp
mov eax, dword [ebp + 4]
and eax, 0x200104
or dword [esi + 4], eax
push esi
call fcn.0047a7f0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x478936
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.004af3d0
add esp, 0xc
jmp 0x478936
test ebp, ebp
je 0x478936
mov eax, dword [esp + 0x18]
push ebp
push dword [eax]
call fcn.004b2a40
add esp, 8
test byte [edi + 4], 1
je 0x47894c
test esi, esi
je 0x47894c
or dword [esi + 4], 1
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 3
push esi
push ebx
call fcn.004f3c70
mov esi, dword [ebx + 0x14]
add esp, 0xc
mov ecx, dword [esp + 0x70]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x50]
shl edx, 4
add esi, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x14], eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x1c], eax
mov eax, 0x40
mov word [esi + 0xc], ax
mov al, byte [esp + 0x13]
mov byte [esi + 0xf], al
mov eax, dword [ebx + 0x14]
mov dword [eax + edx + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 0xe]
mov ebp, dword [ebx + 0x14]
add ebp, ecx
mov eax, dword [ebp + 0x28]
or word [ebp + 0xa], 8
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x48], eax
test edx, edx
jg 0x478840
cmp byte [ebx + 8], 0x2c
jne 0x478ae2
mov al, byte [edi]
cmp al, 0x35
je 0x478a03
cmp al, 0x2d
jne 0x478ae2
mov esi, dword [edi + 0xc]
mov al, byte [esi]
cmp al, 0xad
jne 0x478a0f
mov al, byte [esi + 2]
cmp al, 0xae
jne 0x478a18
mov eax, dword [esi + 0x14]
jmp 0x478a26
cmp al, 0x88
jne 0x478ae2
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x70], edx
cmp edx, 1
jle 0x478ae2
mov eax, dword [edi + 0x10]
push eax
call fcn.004b4170
add esp, 4
cmp eax, edx
jne 0x478ae2
test dword [esi + 4], 0x800
je 0x478a62
mov eax, dword [edi + 0x10]
test dword [eax + 4], 0x800
jne 0x478ae2
xor ebp, ebp
test edx, edx
jle 0x478acc
push ebp
push dword [edi + 0xc]
push dword [esp + 0x20]
call fcn.004b2b10
push ebp
push dword [edi + 0x10]
mov esi, eax
push dword [esp + 0x2c]
call fcn.004b2b10
push eax
movzx eax, byte [edi]
push esi
push eax
push dword [esp + 0x3c]
call fcn.004c41f0
add esp, 0x28
test eax, eax
je 0x478aab
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 1
push eax
push ebx
call fcn.004f3c70
push eax
push ebx
push dword [esp + 0x80]
call fcn.00477fe0
inc ebp
add esp, 0x18
cmp ebp, dword [esp + 0x70]
jl 0x478a68
mov ebp, dword [ebx + 0x14]
mov edx, dword [esp + 0x14]
add ebp, edx
or word [ebp + 0xa], 6
xor eax, eax
mov word [ebp + 0xc], ax
jmp 0x478ae6
mov edx, dword [esp + 0x14]
cmp byte [ebx + 8], 0x2c
jne 0x478b8a
cmp byte [edi], 0x31
jne 0x478b8a
cmp dword [ebp + 0x18], 0
jne 0x478b8a
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0xae
jne 0x478b8a
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x478b8a
cmp dword [eax + 0x44], 0
jne 0x478b8a
push ecx
xor ebp, ebp
call fcn.004b4170
add esp, 4
test eax, eax
jle 0x478b8a
push 2
push edi
push ebx
call fcn.004f3c70
mov ecx, dword [ebx + 0x14]
inc ebp
push eax
push ebx
push dword [esp + 0x80]
lea esi, [eax + eax*2]
add esi, esi
mov dword [ecx + esi*8 + 0x18], ebp
call fcn.00477fe0
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + esi*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov ax, word [ecx + edx + 8]
mov word [ecx + esi*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [eax + edx + 0xe]
push dword [edi + 0xc]
call fcn.004b4170
add esp, 0x1c
cmp ebp, eax
jl 0x478b31
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x38]
add eax, edx
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x3c]
or dword [eax + 0x24], ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x58
ret